Skip to content

Commit 4b9a87c

Browse files
clydinalan-agius4
authored andcommitted
fix(@angular/cli): ignore peer mismatch when updating @nguniversal/builders
When updating to v17, the `@nguniversal/builders` is now ignored when checking peer dependency ranges. The `@nguniversal/builders` is no longer used and will be removed in a migration during the update process. (cherry picked from commit 6161e3e)
1 parent c2f7081 commit 4b9a87c

File tree

1 file changed

+8
-4
lines changed
  • packages/angular/cli/src/commands/update/schematic

1 file changed

+8
-4
lines changed

packages/angular/cli/src/commands/update/schematic/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ function _validateReversePeerDependencies(
183183
'@schematics/update',
184184
'@angular-devkit/build-ng-packagr',
185185
'tsickle',
186+
'@nguniversal/builders',
186187
];
187188
if (ignoredPackages.includes(installed)) {
188189
continue;
@@ -698,11 +699,14 @@ function _addPackageGroup(
698699
}
699700
let packageGroupNormalized: Record<string, string> = {};
700701
if (Array.isArray(packageGroup) && !packageGroup.some((x) => typeof x != 'string')) {
701-
packageGroupNormalized = packageGroup.reduce((acc, curr) => {
702-
acc[curr] = maybePackage;
702+
packageGroupNormalized = packageGroup.reduce(
703+
(acc, curr) => {
704+
acc[curr] = maybePackage;
703705

704-
return acc;
705-
}, {} as { [name: string]: string });
706+
return acc;
707+
},
708+
{} as { [name: string]: string },
709+
);
706710
} else if (
707711
typeof packageGroup == 'object' &&
708712
packageGroup &&

0 commit comments

Comments
 (0)