m19c / gulp-run

Pipe to shell commands in gulp
ISC License
151 stars 25 forks source link

A relative options.cwd combined with running from node_modules/.bin doesn't work #49

Open damonmaria opened 7 years ago

damonmaria commented 7 years ago

If options.cwd is specified then it is prepended in front of node_modules/.bin in the path. But this means (if options.cwd is not absolute) when changed to the new working directory the path addition is wrong (it should be just node_modules/.bin).

And when options.cwd is absolute then node_modules/.bin would still be correct. So shouldn't options.cwd not be included in the node_modules/.bin path?