-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular/clifeatureIssue that requests a new featureIssue that requests a new featurehelp wanted
Milestone
Description
🚀 Feature request
Command (mark with an x
)
$ ng add --registry=http://localhost:4873 @foo/bar
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [x] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Description
ng update --registry=<registry>
allows to update packages from private registry.
However, ng add
offers no capability to add a package from a private registry. The current workaround is to manually create a .npmrc
file in the CLI workspace root, adding the registry configuration there.
Describe the solution you'd like
fetchPackageManifest
andfetchPackageMetadata
already have option for registryexport async function fetchPackageManifest( registry?: string;
- add
--registry
argument to ng add commandasync run(options: AddCommandSchema & Arguments) {
- pass
--registry
arguments to install argumentsspawn(packageManager, installArgs, installOptions)
Describe alternatives you've considered
See above: .npmrc
file.
Metadata
Metadata
Assignees
Labels
area: @angular/clifeatureIssue that requests a new featureIssue that requests a new featurehelp wanted