Skip to content

Commit 0199170

Browse files
committed
refactor(@schematics/angular): remove DevkitBuildNgPackagr and DevkitBuildWebpack from latest-versions
1 parent 1525e7a commit 0199170

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

packages/schematics/angular/migrations/update-7/devkit-ng-packagr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function updateDevkitBuildNgPackagr(): Rule {
2323
{
2424
type: existing.type,
2525
name: '@angular-devkit/build-ng-packagr',
26-
version: latestVersions.DevkitBuildNgPackagr,
26+
version: '^4.2.0',
2727
overwrite: true,
2828
},
2929
);

packages/schematics/angular/migrations/update-7/devkit-ng-packagr_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ describe('updateDevkitBuildNgPackagr', () => {
4747
const content = tree2.readContent('/package.json');
4848
const pkg = JSON.parse(content);
4949
expect(pkg.devDependencies['@angular-devkit/build-ng-packagr'])
50-
.toBe(latestVersions.DevkitBuildNgPackagr);
50+
.toBe('^4.2.0');
5151
});
5252
});

packages/schematics/angular/migrations/update-8/update-dependencies.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ export function updateDependencies() {
1313
return (host: Tree) => {
1414
const dependenciesToUpdate: Record<string, string> = {
1515
'@angular/pwa': '^0.803.9',
16-
'@angular-devkit/build-angular': latestVersions.DevkitBuildAngular,
17-
'@angular-devkit/build-ng-packagr': latestVersions.DevkitBuildNgPackagr,
18-
'@angular-devkit/build-webpack': latestVersions.DevkitBuildWebpack,
19-
'zone.js': latestVersions.ZoneJs,
16+
'@angular-devkit/build-angular': '~0.803.9',
17+
'@angular-devkit/build-ng-packagr': '~0.803.9',
18+
'@angular-devkit/build-webpack': '~0.803.9',
19+
'zone.js': '~0.10.0',
2020
tsickle: '^0.37.0',
21-
'ng-packagr': latestVersions.ngPackagr,
21+
'ng-packagr': '^5.0.0',
2222
'web-animations-js': '^2.3.2',
2323
};
2424

packages/schematics/angular/migrations/update-9/update-dependencies.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ import { latestVersions } from '../../utility/latest-versions';
1616
export function updateDependencies(): Rule {
1717
return (host, context) => {
1818
const dependenciesToUpdate: Record<string, string> = {
19-
'@angular-devkit/build-angular': latestVersions.DevkitBuildAngular,
20-
'@angular-devkit/build-ng-packagr': latestVersions.DevkitBuildNgPackagr,
21-
'@angular-devkit/build-webpack': latestVersions.DevkitBuildWebpack,
22-
'zone.js': latestVersions.ZoneJs,
23-
'ng-packagr': latestVersions.ngPackagr,
19+
'@angular-devkit/build-angular': '~0.901.15',
20+
'@angular-devkit/build-ng-packagr': '~0.901.15',
21+
'@angular-devkit/build-webpack': '~0.901.15',
22+
'zone.js': '~0.10.0',
23+
'ng-packagr': '^9.0.0',
2424
'web-animations-js': '^2.3.2',
2525
'codelyzer': '^5.1.2',
2626
'@types/node': '^12.11.1',

packages/schematics/angular/utility/latest-versions.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export const latestVersions = {
1919
// During RC periods they will not match the latest RC until there's a new git tag, and
2020
// should not be updated.
2121
DevkitBuildAngular: '~0.1200.0-next.3',
22-
DevkitBuildNgPackagr: '~0.1200.0-next.3',
23-
DevkitBuildWebpack: '~0.1200.0-next.3',
2422

2523
ngPackagr: '^12.0.0-next.0',
2624
};

0 commit comments

Comments
 (0)