forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (cherry picked from commit a6129a6)
- Loading branch information
1 parent
1495326
commit cf57d08
Showing
13 changed files
with
80 additions
and
49 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
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,13 +1,14 @@ | ||
import { CommitMessageConfig } from '@angular/ng-dev'; | ||
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: 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), | ||
}; |
File renamed without changes.
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
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,11 +1,14 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"resolveJsonModule": true, | ||
"allowJs": true, | ||
"module": "Node16", | ||
"moduleResolution": "Node16", | ||
"checkJs": true, | ||
"noEmit": true, | ||
"types": [] | ||
}, | ||
"include": ["**/*.mts"], | ||
"include": ["**/*.mjs"], | ||
"exclude": [] | ||
} |
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