This is an automated email from the ASF dual-hosted git repository. alexkli pushed a commit to branch fix-fswatch-exclusion in repository https://gitbox.apache.org/repos/asf/openwhisk-wskdebug.git
commit 46c5f472c93cb1c7b1e69142fab56e658da62292 Author: Alexander Klimetschek <[email protected]> AuthorDate: Tue Mar 31 23:59:28 2020 -0700 fix node_modules exclusion glob that made tests fail on Linux sometimes because it was watching all files in the node_modules folder for the test: should invoke action when a source file changes and -P is set when source-path points to directory --- src/watcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watcher.js b/src/watcher.js index 8488ffa..4e0fd91 100644 --- a/src/watcher.js +++ b/src/watcher.js @@ -40,7 +40,7 @@ class Watcher { this.liveReloadServer = livereload.createServer({ port: this.argv.livereloadPort, noListen: !this.argv.livereload, - exclusions: [this.argv.buildPath, "node_modules/**"], + exclusions: [this.argv.buildPath, "**/node_modules/**", "**/.*"], exts: this.argv.watchExts || ["json", "js", "ts", "coffee", "py", "rb", "erb", "go", "java", "scala", "php", "swift", "rs", "cs", "bal", "php", "php5"], extraExts: [] });
