Skip to content

Commit 6cfa7c3

Browse files
christianscharrhansl
authored andcommitted
fix(@angular/cli): exclude node_modules while take account for os specific path separators (#6870)
1 parent 542f2bd commit 6cfa7c3

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._relativePath('process.cwd()', 'node_modules');
290+
return this._serializeRegExp(/(\\|\/)node_modules(\\|\/)/);
291291
}
292292
return this._relativePath('process.cwd()', path.relative(this._root, v));
293293
} else {

0 commit comments

Comments
 (0)