Skip to content

Commit b19a348

Browse files
smnbbrvhansl
authored andcommitted
fix(@schematics/update): taking whitespaces around "=" in .npmrc into account
1 parent b699ad2 commit b19a348

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
@@ -56,7 +56,7 @@ function _readNpmRc(): Observable<{ [key: string]: string }> {
5656

5757
allOptionsArr.forEach(x => {
5858
const [key, ...value] = x.split('=');
59-
allOptions[key] = value.join('=');
59+
allOptions[key.trim()] = value.join('=').trim();
6060
});
6161

6262
subject.next(allOptions);

0 commit comments

Comments
 (0)