Skip to content

Commit deeaf18

Browse files
alan-agius4clydin
authored andcommitted
fix(@angular/cli): correctly select package versions in descending order during ng add
When using the `ng add` command, the package version selection logic was not correctly selected based on the available versions in desc order. This could lead to selecting an unintended version of the package. Closes: #28985 (cherry picked from commit 4ef45ec)
1 parent f141700 commit deeaf18

File tree

1 file changed

+1
-0
lines changed
  • packages/angular/cli/src/commands/add

1 file changed

+1
-0
lines changed

packages/angular/cli/src/commands/add/cli.ts

+1
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ export default class AddCommandModule
242242
versionManifest.version,
243243
);
244244
found = true;
245+
break;
245246
}
246247

247248
if (!found) {

0 commit comments

Comments
 (0)