angular-cli/.ng-dev/commit-message.mjs
Charles Lyding 8edee8e328 build: change ng-dev config files to mjs with type jsdoc
To minimize the need for ts-node, the ng-dev configuration files are now
ESM JavaScript files. To support type-checking of the files, JSDoc `@type`
comments are added to each file. This allows for IDE support while also
removing the need for ts-node to execute the files. Unfortunately, the
`lib/packages.ts` file is still present and used by the configurations.
This prevents full removal of ts-node for the ng-dev execution at this
time.
2023-12-05 13:22:08 -05:00

15 lines
419 B
JavaScript

import packages from '../lib/packages.js';
/**
* The configuration for `ng-dev commit-message` commands.
*
* @type { import("@angular/ng-dev").CommitMessageConfig }
*/
export const commitMessage = {
maxLineLength: Infinity,
minBodyLength: 0,
minBodyLengthTypeExcludes: ['docs'],
// Note: When changing this logic, also change the `contributing.ejs` file.
scopes: [...Object.keys(packages.packages)],
};