-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update ng-dev config to work with Node.js 18.19
Update ng-dev setup to work with 18.19 For more details, refer to: TypeStrong/ts-node#2094
- Loading branch information
1 parent
a44b6c1
commit a6129a6
Showing
8 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import packages from '../lib/packages.js'; | ||
import { getReleasablePackages } from '../lib/packages.mjs'; | ||
|
||
/** | ||
* 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)], | ||
scopes: getReleasablePackages().map(({ name }) => name), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
|
||
import fastGlob from 'fast-glob'; | ||
import { readFileSync } from 'node:fs'; | ||
import { createRequire } from 'node:module'; | ||
|
||
const require = createRequire(import.meta.url); | ||
const monorepoData = require('../.monorepo.json'); | ||
|
||
export function getReleasablePackages() { | ||
const packages = []; | ||
for (const pkg of fastGlob.sync('./packages/*/*/package.json')) { | ||
const data = JSON.parse(readFileSync(pkg, 'utf-8')); | ||
if (!(data.name in monorepoData.packages)) { | ||
throw new Error(`${data.name} does not exist in .monorepo.json`); | ||
} | ||
|
||
if (data.private) { | ||
continue; | ||
} | ||
|
||
packages.push(data); | ||
} | ||
|
||
return packages; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters