fix(@schematics/update): only set registry option when used

This commit is contained in:
Charles Lyding 2018-11-30 19:07:12 -05:00 committed by Alex Eagle
parent aae1afd114
commit 17d4dcc936

View File

@ -129,7 +129,7 @@ export function getNpmPackageJson(
{
'full-metadata': true,
...npmrc,
registry: options && options.registryUrl,
...(options && options.registryUrl ? { registry: options.registryUrl } : {}),
},
);