Commit 853a898
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 853a898
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
515 | 517 | | |
516 | 518 | | |
517 | 519 | | |
518 | | - | |
| 520 | + | |
519 | 521 | | |
520 | 522 | | |
521 | 523 | | |
| |||
0 commit comments