Skip to content

Commit 542f2bd

Browse files
christianscharrhansl
authored andcommitted
fix(@angular/cli): use relative path instead of regex to exclude node_modules (#6870)
1 parent ca98b2b commit 542f2bd

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)