Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /