Skip to content

Commit

Permalink
fix(@angular/cli): correctly select package versions in descending or…
Browse files Browse the repository at this point in the history
…der 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)
  • Loading branch information
alan-agius4 committed Nov 27, 2024
1 parent 277b8a3 commit 4e82ca1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/angular/cli/src/commands/add/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export default class AddCommandModule
versionManifest.version,
);
found = true;
break;
}

if (!found) {
Expand Down

0 comments on commit 4e82ca1

Please sign in to comment.