Commit 977654a
committed
fix(@angular/cli): preserve exact version in ng add when requested
The `ng add` command would previously always add a caret (`^`) prefix
to the resolved package version, even if the user explicitly requested
an exact version. This change ensures that the exact version is preserved
in the package identifier if requested, while maintaining the caret
prefix for general requests to ensure consistent behavior with package
managers.1 parent a39a331 commit 977654a
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| 514 | + | |
514 | 515 | | |
515 | 516 | | |
516 | 517 | | |
517 | 518 | | |
518 | | - | |
| 519 | + | |
519 | 520 | | |
520 | 521 | | |
521 | 522 | | |
| |||
0 commit comments