You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by al...@apache.org on 2020/04/01 07:00:43 UTC

[openwhisk-wskdebug] 01/01: fix node_modules exclusion glob that made tests fail on Linux sometimes

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 <ak...@adobe.com>
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: []
             });