diff --git a/lib/pipeline/watch.js b/lib/pipeline/watch.js index bf43a151a..a436b5bca 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]), '**', '*.*'); }