feat(@schematics/update): add full support of npmrc / npm config#12350
feat(@schematics/update): add full support of npmrc / npm config#12350smnbbrv wants to merge 1 commit into
Conversation
|
Thank you for the effort on this contribution. However, depending directly on |
|
hi @clydin thank you for quick review! Let's have a look at those problems:
Let's have a look at what we currently have: Or, using NPM as a solution until they break the API and @schematics/update would need a newer version of NPM. This issue #10624 is open since |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
A logical consequence of #12284.
Fully fixes #10624 and related issues.
The current npm config support is not full and most likely cannot ever become one. There are lots of (legacy) authentication methods, hierarchical .npmrc, all that is running in various OS, etc.
This is a brand new approach: npm is used as a service. It appears that internally npm not only allows reading all the configuration (including _auth, _authToken etc), but also already provides a resolver for various authentication models.
What is changed:
and the most important:
How to try on existing @angular/cli project:
your_project/node_modules/@schematics/update/update/npm.js