forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.mjs
More file actions
48 lines (45 loc) · 1.6 KB
/
Copy pathrelease.mjs
File metadata and controls
48 lines (45 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import semver from 'semver';
import { releasePackages } from '../scripts/packages.mts';
/**
* Configuration for the `ng-dev release` command.
*
* @type { import("@angular/ng-dev").ReleaseConfig }
*/
export const release = {
representativeNpmPackage: '@angular/cli',
npmPackages: releasePackages.map(({ name, experimental }) => {
if (
name === '@angular-devkit/build-angular' ||
name === '@angular-devkit/build-webpack' ||
name === '@ngtools/webpack'
) {
return {
name,
experimental,
deprecated: {
version: '>=22.0.0-rc.0',
message:
'Angular\'s Webpack support is deprecated. Use the esbuild and Vite-based "@angular/build" package instead.',
},
};
}
return { name, experimental };
}),
buildPackages: async () => {
// The `performNpmReleaseBuild` function is loaded at runtime to avoid loading additional
// files and dependencies unless a build is required.
const { performNpmReleaseBuild } = await import('../scripts/build-packages-dist.mts');
return performNpmReleaseBuild();
},
prereleaseCheck: async (newVersionStr) => {
const newVersion = new semver.SemVer(newVersionStr);
const { assertValidDependencyRanges } =
await import('../scripts/release-checks/dependency-ranges/index.mts');
await assertValidDependencyRanges(newVersion, releasePackages);
},
releaseNotes: {
groupOrder: ['@angular/cli', '@schematics/angular', '@angular-devkit/schematics-cli'],
},
publishRegistry: 'https://wombat-dressing-room.appspot.com',
releasePrLabels: ['action: merge'],
};