Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we mention registry while installing NodeDependencies? #3

Open
hrishikeshpotdar91 opened this issue Mar 21, 2019 · 1 comment
Open
Labels
question Further information is requested

Comments

@hrishikeshpotdar91
Copy link

for eg
if this is my code

import { NodeDependency, NodeDependencyType } from 'schematics-utilities';

const dependencies: NodeDependency[] = [
{ type: NodeDependencyType.Dev, version: '^23.6.0', name: 'jest' },
{ type: NodeDependencyType.Dev, version: '^3.0.0', name: '@angular/material' }
];

can I add the registry for that dependency like this?

{ type: NodeDependencyType.Dev, version: '^3.0.0', name: '@angular/material' , registry: 'www.google.com/material'}

Or is there any other way to do this?

@nitayneeman nitayneeman added the question Further information is requested label Aug 2, 2019
@nitayneeman
Copy link
Owner

HI,

Sorry for the long wait.

This is how the original code adds the package:
https://github.com/angular/angular-cli/blob/5f44e642ee90976a826b9b2bcb10a051e42a46e0/packages/schematics/angular/utility/dependencies.ts#L48

It seems like it's not supported at the moment.

Would you like to implement it and open a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants