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
  • Loading branch information
alan-agius4 committed Nov 27, 2024
1 parent 3a22d44 commit 4ef45ec
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 4ef45ec

Please sign in to comment.