Skip to content

Commit

Permalink
Dont watch node_modules folder (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtstern committed May 13, 2019
1 parent da17f14 commit 73e417f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.txt
@@ -0,0 +1 @@
fixed - Functions emulator no longer watches node_modules files.
5 changes: 3 additions & 2 deletions src/emulator/functionsEmulator.ts
Expand Up @@ -385,8 +385,9 @@ You can probably fix this by running "npm install ${

const watcher = chokidar.watch(this.functionsDir, {
ignored: [
/(^|[\/\\])\../ /* Ignore files which begin the a period */,
/.+\.log/ /* Ignore files which have a .log extension */,
/.+?[\\\/]node_modules[\\\/].+?/, // Ignore node_modules
/(^|[\/\\])\../, // Ignore files which begin the a period
/.+\.log/, // Ignore files which have a .log extension
],
persistent: true,
});
Expand Down

0 comments on commit 73e417f

Please sign in to comment.