Commit 5942e69
committed
fix(@angular/cli): always install package during ng add to inspect manifest on disk for schematics
Private package registries such as GitHub Packages frequently strip out custom non-npm metadata properties (such as schematics and ng-add) from their remote API responses. Previously, ng add skipped confirming and installing a package if the registry metadata did not report hasSchematics, causing ng add to fail on first run.
This commit removes the early skip condition based on registry metadata so ng add always installs the target package to inspect its physical manifest on disk. If no schematics are found after installation, the CLI cleanly removes the temporary dependency.
Closes #330601 parent 1f86582 commit 5942e69
1 file changed
Lines changed: 6 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 227 | | |
235 | 228 | | |
236 | 229 | | |
237 | 230 | | |
238 | 231 | | |
239 | 232 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | 233 | | |
251 | 234 | | |
252 | 235 | | |
| |||
278 | 261 | | |
279 | 262 | | |
280 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
281 | 267 | | |
282 | 268 | | |
283 | 269 | | |
| |||
305 | 291 | | |
306 | 292 | | |
307 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
308 | 297 | | |
309 | 298 | | |
310 | 299 | | |
| |||
0 commit comments