Skip to content

Commit

Permalink
fix(@angular/cli): exclude node_modules while take account for os spe…
Browse files Browse the repository at this point in the history
…cific path separators (#6870)
  • Loading branch information
christianscharr authored and hansl committed Aug 3, 2017
1 parent 542f2bd commit 6cfa7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@angular/cli/tasks/eject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class JsonWebpackSerializer {
return v;
} else if (typeof v == 'string') {
if (v === path.join(this._root, 'node_modules')) {
return this._relativePath('process.cwd()', 'node_modules');
return this._serializeRegExp(/(\\|\/)node_modules(\\|\/)/);
}
return this._relativePath('process.cwd()', path.relative(this._root, v));
} else {
Expand Down

0 comments on commit 6cfa7c3

Please sign in to comment.