mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +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 => {
|
allOptionsArr.forEach(x => {
|
||||||
const [key, ...value] = x.split('=');
|
const [key, ...value] = x.split('=');
|
||||||
allOptions[key] = value.join('=');
|
allOptions[key.trim()] = value.join('=').trim();
|
||||||
});
|
});
|
||||||
|
|
||||||
subject.next(allOptions);
|
subject.next(allOptions);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user