angular-cli/.ng-dev/pull-request.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

13 lines
361 B
JavaScript

/**
* Configuration for the merge tool in `ng-dev`. This sets up the labels which
* are respected by the merge script (e.g. the target labels).
*
* @type { import("@angular/ng-dev").PullRequestConfig }
*/
export const pullRequest = {
githubApiMerge: {
default: 'rebase',
labels: [{ pattern: 'merge: squash commits', method: 'squash' }],
},
};