Commit 71d4e8a
committed
refactor(@angular/cli): add ignorePeerDependencies option to package manager
This commit adds support for ignoring peer dependency warnings and errors during package installation. This is useful for commands like `ng update` where transient peer dependency conflicts may occur.
- Added `ignorePeerDependenciesFlag` to the `PackageManagerDescriptor` interface.
- Implemented the flag for `npm` (`--legacy-peer-deps`) and `pnpm` (`--strict-peer-dependencies=false`).
- Updated `PackageManager.install` to accept and apply the `ignorePeerDependencies` option.1 parent cb24c24 commit 71d4e8a
File tree
2 files changed
+7
-0
lines changed- packages/angular/cli/src/package-managers
2 files changed
+7
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| 146 | + | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| |||
215 | 219 | | |
216 | 220 | | |
217 | 221 | | |
| 222 | + | |
218 | 223 | | |
219 | 224 | | |
220 | 225 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| 317 | + | |
316 | 318 | | |
317 | 319 | | |
318 | 320 | | |
| |||
0 commit comments