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

[openwhisk-wskdebug] branch master updated: fix node_modules exclusion glob that made tests fail on Linux sometimes (#35)

This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-wskdebug.git


The following commit(s) were added to refs/heads/master by this push:
     new 9fbc6d8  fix node_modules exclusion glob that made tests fail on Linux sometimes (#35)
9fbc6d8 is described below

commit 9fbc6d80957b217a8ab77d94a376840216d39708
Author: Alexander Klimetschek <ak...@adobe.com>
AuthorDate: Wed Apr 1 04:46:35 2020 -0700

    fix node_modules exclusion glob that made tests fail on Linux sometimes (#35)
    
    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: []
             });