From ed530e8511d0a6c1fe1a273dbe86feb2d9491b57 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 21 Feb 2018 14:04:08 -0500 Subject: [PATCH] fix issue in which some files were not triggered change event --- lib/pipeline/watch.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pipeline/watch.js b/lib/pipeline/watch.js index bf43a151..a436b5bc 100644 --- a/lib/pipeline/watch.js +++ b/lib/pipeline/watch.js @@ -43,7 +43,9 @@ class Watch { // workaround for imports issue // so embark reacts to changes made in imported js files - if ((!Array.isArray(files) || files.length === 1)) { + if (!Array.isArray(files)) { + fileGlob = path.join(path.dirname(files), '**', '*.*'); + } else if (files.length === 1) { fileGlob = path.join(path.dirname(files[0]), '**', '*.*'); }