Skip to content

Commit a28048a

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

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
@@ -279,7 +279,7 @@ class JsonWebpackSerializer {
279279
return v;
280280
} else if (typeof v == 'string') {
281281
if (v === path.join(this._root, 'node_modules')) {
282-
return this._relativePath('process.cwd()', 'node_modules');
282+
return this._serializeRegExp(/(\\|\/)node_modules(\\|\/)/);
283283
}
284284
return this._relativePath('process.cwd()', path.relative(this._root, v));
285285
} else {

0 commit comments

Comments
 (0)