Skip to content

Commit 08ff8d5

Browse files
christianscharrdond2clouds
authored andcommitted
fix(@angular/cli): use relative path instead of regex to exclude node_modules (angular#6870)
1 parent 7bf6788 commit 08ff8d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@angular/cli/tasks/eject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ class JsonWebpackSerializer {
287287
return v;
288288
} else if (typeof v == 'string') {
289289
if (v === path.join(this._root, 'node_modules')) {
290-
return this._serializeRegExp(/\/node_modules\//);
290+
return this._relativePath('process.cwd()', 'node_modules');
291291
}
292292
return this._relativePath('process.cwd()', path.relative(this._root, v));
293293
} else {

0 commit comments

Comments
 (0)