Skip to content

Commit adb2b98

Browse files
committed
build: add package deprecations to release configuration
Configures @angular-devkit/build-angular, @angular-devkit/build-webpack, and @ngtools/webpack as deprecated in the ng-dev release configuration.
1 parent 7d261a2 commit adb2b98

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.ng-dev/release.mjs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,25 @@ import { releasePackages } from '../scripts/packages.mts';
88
*/
99
export const release = {
1010
representativeNpmPackage: '@angular/cli',
11-
npmPackages: releasePackages.map(({ name, experimental }) => ({ name, experimental })),
11+
npmPackages: releasePackages.map(({ name, experimental }) => {
12+
if (
13+
name === '@angular-devkit/build-angular' ||
14+
name === '@angular-devkit/build-webpack' ||
15+
name === '@ngtools/webpack'
16+
) {
17+
return {
18+
name,
19+
experimental,
20+
deprecated: {
21+
version: '>=22.0.0-next.0',
22+
message:
23+
'Angular\'s Webpack support is deprecated. Use the esbuild and Vite-based "@angular/build" package instead.',
24+
},
25+
};
26+
}
27+
28+
return { name, experimental };
29+
}),
1230
buildPackages: async () => {
1331
// The `performNpmReleaseBuild` function is loaded at runtime to avoid loading additional
1432
// files and dependencies unless a build is required.

0 commit comments

Comments
 (0)