Commit 28f4d68
committed
perf(@angular/cli): avoid redundant package version resolution in ng add
The `ng add` command would previously resolve the package version from the
registry multiple times during execution. This change updates the package
identifier with the exact version from the manifest once it has
been fetched from the registry, preventing subsequent redundant lookups.
Additionally, the already-parsed package identifier is now passed directly
to the package manager's `getManifest` method.
(cherry picked from commit ad0fd5f)1 parent 4ca6164 commit 28f4d68
1 file changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
498 | 495 | | |
499 | 496 | | |
500 | 497 | | |
| |||
508 | 505 | | |
509 | 506 | | |
510 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
511 | 519 | | |
512 | 520 | | |
513 | 521 | | |
| |||
0 commit comments