Skip to content

Commit 79312f9

Browse files
committed
feat(angular): update nx init legacy migration for angular to handle angular v17
1 parent f117119 commit 79312f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/nx/src/command-line/init/implementation/angular/legacy-angular-versions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ const nxAngularLegacyVersionMap: Record<number, string> = {
2121
14: '~17.0.0',
2222
15: '~19.0.0',
2323
16: '~20.1.0',
24+
17: '~21.1.0',
2425
};
2526
// min major angular version supported in latest Nx
26-
const minMajorAngularVersionSupported = 17;
27+
const minMajorAngularVersionSupported =
28+
Math.max(...Object.keys(nxAngularLegacyVersionMap).map(Number)) + 1;
2729
// version when the Nx CLI changed from @nrwl/tao & @nrwl/cli to nx
2830
const versionWithConsolidatedPackages = '13.9.0';
2931
// version when packages were rescoped from @nrwl/* to @nx/*

0 commit comments

Comments
 (0)