Commit da53acc
committed
refactor(@angular/cli): respect workspace cache configuration in ng add
This change updates the 'ng add' command to dynamically determine the base directory for temporary package manager operations by consulting the workspace configuration. If caching is enabled and the cache path is located within the workspace root, it is added to the list of candidate directories alongside 'node_modules'.
This ensures that the package manager correctly inherits project settings even when the user has customized the location of the '.angular' directory, while maintaining the requirement that the directory must be within the project context for configuration inheritance to work.1 parent 0b60377 commit da53acc
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
303 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
304 | 315 | | |
305 | | - | |
| 316 | + | |
306 | 317 | | |
307 | 318 | | |
308 | 319 | | |
| |||
0 commit comments