gulpjs / glob-stream

Readable streamx interface over anymatch.
MIT License
178 stars 53 forks source link

Doesn't play nice with node-glob root option #37

Closed Janpot closed 9 years ago

Janpot commented 9 years ago

this line: https://github.com/wearefractal/glob-stream/blob/6411ea4891d24227f94f302bd52d79584af8fa9b/index.js#L18 Turns all relative paths into absolute paths. When this is passed to node-glob together with a custom root option it tries to resolve them to this custom root. If this root is no the default one, the files can't be found.

Possible solution would be to resolve absolute paths to the root option and then delete that option before passing the options object to node-glob