Skip to content

Commit c117b60

Browse files
committed
build: use mjs instead of mts files for ng-dev configuration
1 parent b14d0b0 commit c117b60

File tree

8 files changed

+36
-31
lines changed

8 files changed

+36
-31
lines changed

.ng-dev/commit-message.mts renamed to .ng-dev/commit-message.mjs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
import {CommitMessageConfig} from '../ng-dev/commit-message/config.js';
2-
31
/** Build a set of scopes for a package. */
4-
function buildScopesFor(pkg: string, subpkgs: string[]) {
5-
return [pkg, ...subpkgs.map((subpkg: string) => `${pkg}/${subpkg}`)];
2+
function buildScopesFor(pkg, subpkgs) {
3+
return [pkg, ...subpkgs.map((subpkg) => `${pkg}/${subpkg}`)];
64
}
75

8-
export const commitMessage: CommitMessageConfig = {
6+
/**
7+
* The configuration for `ng-dev commit-message` commands.
8+
*
9+
* @type { import("../ng-dev/index.js").CommitMessageConfig }
10+
*/
11+
export const commitMessage = {
912
maxLineLength: Infinity,
1013
minBodyLength: 0,
1114
scopes: [
File renamed without changes.

.ng-dev/format.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* Configuration for the `ng-dev format` command.
3+
*
4+
* @type { import("../ng-dev/index.js").FormatConfig }
5+
*/
6+
export const format = {
7+
'prettier': true,
8+
'buildifier': true,
9+
};

.ng-dev/format.mts

Lines changed: 0 additions & 7 deletions
This file was deleted.

.ng-dev/github.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Github configuration for the `ng-dev` command. This repository is used as
3+
* remote for the merge script and other utilities like `ng-dev pr rebase`.
4+
*
5+
* @type { import("../ng-dev/index.js").GithubConfig }
6+
*/
7+
export const github = {
8+
owner: 'angular',
9+
name: 'dev-infra',
10+
mainBranchName: 'main',
11+
useNgDevAuthService: true,
12+
};

.ng-dev/github.mts

Lines changed: 0 additions & 9 deletions
This file was deleted.

.ng-dev/pull-request.mts renamed to .ng-dev/pull-request.mjs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import {PullRequestConfig} from '../ng-dev/pr/config/index.js';
2-
3-
/** Configuration for interacting with pull requests in the repo. */
4-
export const pullRequest: PullRequestConfig = {
1+
/**
2+
* Configuration for the merge tool in `ng-dev`. This sets up the labels which
3+
* are respected by the merge script (e.g. the target labels).
4+
*
5+
* @type { import("../ng-dev/index.js").PullRequestConfig }
6+
*/
7+
export const pullRequest = {
58
githubApiMerge: {
69
default: 'auto',
710
labels: [{pattern: 'merge: squash commits', method: 'squash'}],

.ng-dev/tsconfig.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)