Skip to content

Commit 3863d79

Browse files
alan-agius4dherges
authored andcommitted
fix: don't exclude node_modules from watch (#995)
In some cases consumers which have a seperate watch running that will update `node_modules` due to an `npm link`. We shall not exclude `node_modules` from being watched for this usecase.
1 parent 72b2a00 commit 3863d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/file/file-watcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function createFileWatch(
1919

2020
const watch = chokidar.watch(projectPath, {
2121
ignoreInitial: true,
22-
ignored: [...ignoredPaths, /((^[\/\\])\..)|(\.js$)|(\.map$)|(\.metadata\.json)|(node_modules)/],
22+
ignored: [...ignoredPaths, /((^[\/\\])\..)|(\.js$)|(\.map$)|(\.metadata\.json)/],
2323
persistent: true
2424
});
2525

0 commit comments

Comments
 (0)