Skip to content

Commit

Permalink
fix(@angular/cli): exclude deprecated packages with removal migration…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
alan-agius4 committed Dec 16, 2021
1 parent 445eae8 commit 1efff8f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/schematics/update/update/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,16 @@ function _validateReversePeerDependencies(
continue;
}

if (installed === '@angular-devkit/build-ng-packagr') {
// Ignore peerDependencies mismatches for `@angular-devkit/build-ng-packagr`.
// This package is deprecated and is removed via a migration.
// Ignore peerDependency mismatches for these packages.
// They are deprecated and removed via a migration.
const ignoredPackages = [
'codelyzer',
'@schematics/update',
'@angular-devkit/build-ng-packagr',
'tsickle',
];

if (ignoredPackages.includes(installed)) {
continue;
}

Expand Down

0 comments on commit 1efff8f

Please sign in to comment.