diff --git a/lib/globber.js b/lib/globber.js index 87dc2b8..0b0113b 100644 --- a/lib/globber.js +++ b/lib/globber.js @@ -6,11 +6,12 @@ function globber(paths) { const files = new Rx.Subject(); files.fileEvents = []; - const Glob = glob.Glob; let doneCount = 0; paths.forEach(function (path) { - const fileEvents = new Glob(path); + const fileEvents = new glob.Glob(path, { + nodir: true + }); fileEvents.on('match', function (file) { files.onNext(file); @@ -23,7 +24,7 @@ function globber(paths) { }); files.fileEvents.push(fileEvents); - }) + }); return files; }