mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
fix(@schematics/update): taking whitespaces around "=" in .npmrc into account
This commit is contained in:
parent
b699ad2684
commit
b19a348c69
@ -56,7 +56,7 @@ function _readNpmRc(): Observable<{ [key: string]: string }> {
|
||||
|
||||
allOptionsArr.forEach(x => {
|
||||
const [key, ...value] = x.split('=');
|
||||
allOptions[key] = value.join('=');
|
||||
allOptions[key.trim()] = value.join('=').trim();
|
||||
});
|
||||
|
||||
subject.next(allOptions);
|
||||
|
Loading…
x
Reference in New Issue
Block a user