From 15af387c106ea6285020cec7dd5bf3827d084804 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 17 Nov 2020 14:12:36 +0100 Subject: [PATCH] fix(@schematics/update): ignore `@angular-devkit/build-ng-packagr` incompatible peer dependency This package is deprecated and is removed via a migration. Closes #19384 (cherry picked from commit ddd114cdfcddff2e2829523bf7a93ae40a199ba1) --- packages/schematics/update/update/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/schematics/update/update/index.ts b/packages/schematics/update/update/index.ts index 908e6eb88e6f..79a917dc61ca 100644 --- a/packages/schematics/update/update/index.ts +++ b/packages/schematics/update/update/index.ts @@ -172,6 +172,12 @@ 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. + continue; + } + // Override the peer version range if it's known as a compatible. const extendedRange = _updatePeerVersion(infoMap, peer, range);