Skip to content

Commit dbadfb5

Browse files
committed
Remove node_modules from the anchored regex since it's ignored everywhere now
1 parent 1cba9b5 commit dbadfb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/incremental-typescript-compiler/typescript-output-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = class TypescriptOutput extends Plugin {
3030
for (let relativeSrc of Object.keys(this.paths)) {
3131
let src = `${this.compiler.outDir()}/${relativeSrc}`;
3232
let dest = `${this.outputPath}/${this.paths[relativeSrc]}`;
33-
if (fs.existsSync(src)) {
33+
if (fs.existsSync(src) && !fs.existsSync(dest)) {
3434
let dir = path.dirname(dest);
3535
if (dir !== '.') {
3636
fs.mkdirsSync(dir);

lib/utilities/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function diagnosticCallback(callback) {
6969
}
7070

7171
function buildWatchHooks(project, ts, callbacks) {
72-
let ignorePatterns = ['\\..*?', 'dist', 'tmp', 'node_modules'];
72+
let ignorePatterns = ['\\..*?', 'dist', 'tmp'];
7373

7474
return Object.assign({}, ts.sys, {
7575
watchFile: null,

0 commit comments

Comments
 (0)