Skip to content

Commit

Permalink
fix(@schematics/update): only set registry option when used
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and Keen Yee Liau committed Dec 10, 2018
1 parent a236572 commit a4d3eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schematics/update/update/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function getNpmPackageJson(
{
'full-metadata': true,
...npmrc,
registry: registryUrl,
...(registryUrl ? { registry: registryUrl } : {}),
},
);

Expand Down

0 comments on commit a4d3eeb

Please sign in to comment.