mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
fix(@schematics/update): only set registry option when used
This commit is contained in:
parent
aae1afd114
commit
17d4dcc936
@ -129,7 +129,7 @@ export function getNpmPackageJson(
|
||||
{
|
||||
'full-metadata': true,
|
||||
...npmrc,
|
||||
registry: options && options.registryUrl,
|
||||
...(options && options.registryUrl ? { registry: options.registryUrl } : {}),
|
||||
},
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user