Skip to content

Commit a4d3eeb

Browse files
clydinKeen Yee Liau
authored and
Keen Yee Liau
committed
fix(@schematics/update): only set registry option when used
1 parent a236572 commit a4d3eeb

File tree

1 file changed

+1
-1
lines changed
  • packages/schematics/update/update

1 file changed

+1
-1
lines changed

packages/schematics/update/update/npm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function getNpmPackageJson(
112112
{
113113
'full-metadata': true,
114114
...npmrc,
115-
registry: registryUrl,
115+
...(registryUrl ? { registry: registryUrl } : {}),
116116
},
117117
);
118118

0 commit comments

Comments
 (0)