Skip to content

Commit 1efff8f

Browse files
committed
fix(@angular/cli): exclude deprecated packages with removal migration from update
Deprecated packages that may have been included in a project by the tooling are now ignored when validating an update. This change removes the need to use the `--force` option in a situation where the later migrations will remove and cleanup the deprecated packages.
1 parent 445eae8 commit 1efff8f

File tree

1 file changed

+10
-3
lines changed
  • packages/schematics/update/update

1 file changed

+10
-3
lines changed

packages/schematics/update/update/index.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,16 @@ function _validateReversePeerDependencies(
172172
continue;
173173
}
174174

175-
if (installed === '@angular-devkit/build-ng-packagr') {
176-
// Ignore peerDependencies mismatches for `@angular-devkit/build-ng-packagr`.
177-
// This package is deprecated and is removed via a migration.
175+
// Ignore peerDependency mismatches for these packages.
176+
// They are deprecated and removed via a migration.
177+
const ignoredPackages = [
178+
'codelyzer',
179+
'@schematics/update',
180+
'@angular-devkit/build-ng-packagr',
181+
'tsickle',
182+
];
183+
184+
if (ignoredPackages.includes(installed)) {
178185
continue;
179186
}
180187

0 commit comments

Comments
 (0)