Commit 944caf2
committed
refactor(@angular/cli): use ignorePeerDependencies in update command
This commit updates the `ng update` command to utilize the `ignorePeerDependencies` option when installing packages. Previously, the command forced the installation (`--force`) when NPM 7+ was detected to workaround peer dependency issues. Now, it uses the more specific `ignorePeerDependencies` option (mapping to `--legacy-peer-deps` for NPM), which is safer and cleaner.1 parent 71d4e8a commit 944caf2
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
525 | 529 | | |
526 | 530 | | |
527 | 531 | | |
| |||
545 | 549 | | |
546 | 550 | | |
547 | 551 | | |
548 | | - | |
| 552 | + | |
549 | 553 | | |
550 | 554 | | |
551 | 555 | | |
552 | 556 | | |
553 | 557 | | |
554 | 558 | | |
555 | 559 | | |
556 | | - | |
557 | 560 | | |
558 | 561 | | |
559 | 562 | | |
| |||
0 commit comments