diff --git a/packages/angular/cli/src/commands/update/schematic/index.ts b/packages/angular/cli/src/commands/update/schematic/index.ts index 0e33b1fc157f..d7995edca3eb 100644 --- a/packages/angular/cli/src/commands/update/schematic/index.ts +++ b/packages/angular/cli/src/commands/update/schematic/index.ts @@ -172,9 +172,14 @@ 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', + ]; + if (ignoredPackages.includes(installed)) { continue; } diff --git a/tests/legacy-cli/e2e/tests/update/update-8.ts b/tests/legacy-cli/e2e/tests/update/update-8.ts index 2c3cb520ecae..11c5a2ca23ec 100644 --- a/tests/legacy-cli/e2e/tests/update/update-8.ts +++ b/tests/legacy-cli/e2e/tests/update/update-8.ts @@ -25,8 +25,8 @@ export default async function () { // Update Angular to 10 await ng('update', '@angular/cli@10', '@angular/core@10'); - // Update Angular to 11 (force needed due to codelyzer) - await ng('update', '@angular/cli@11', '@angular/core@11', '--force'); + // Update Angular to 11 + await ng('update', '@angular/cli@11', '@angular/core@11'); } finally { await setRegistry(true); }