Closed vicary closed 9 years ago
Basically my gulp.src('test/*.js') returns nothing when my process.cwd() contains [] brackets.
gulp.src('test/*.js')
process.cwd()
[]
Tracing down the gulp dependency tree:
gulp
├─┬ gulp@3.8.11 │ └─┬ vinyl-fs@0.3.13 │ ├─┬ glob-stream@3.1.18 │ │ ├─┬ glob@4.4.0
I explicitly installed those versions and here is my test scripts:
require('vinyl-fs') .src('test/*.js') .on('data', function() { console.log(arguments); }); // no output require('glob-stream') .create('test/*.js') .on('data', function() { console.log(arguments); }); // no output require('glob')('test/*.js', function() { console.log(arguments); }); // lists out my files
Further testing shows that with the current version glob-stream@4.0.1 the problem still occurs.
glob-stream@4.0.1
https://github.com/isaacs/minimatch/issues/50
Oh thanks, closing this.
Basically my
gulp.src('test/*.js')
returns nothing when myprocess.cwd()
contains[]
brackets.Tracing down the
gulp
dependency tree:I explicitly installed those versions and here is my test scripts:
Further testing shows that with the current version
glob-stream@4.0.1
the problem still occurs.