benoror / better-npm-run

🏃‍♂️ Better NPM scripts runner
MIT License
639 stars 56 forks source link

[Feature] cwd diretory #61

Closed laggingreflex closed 8 years ago

laggingreflex commented 8 years ago

I have a use case where I need to do "cd xxx && yyy". I was wondering whether it could be achieved with this module by simply specifying the cwd directory, just like it does env variables?

benoror commented 8 years ago

have you tried using a npm script simply with cd xxx && yyy ?

laggingreflex commented 8 years ago

Yes. But it's an awkward syntax, and I thought it would be great having both this and cross-env removed and simply use {env:xxx, cwd:yyy}

benoror commented 8 years ago

I respectfully disagree good ol' shell syntax is awkward syntax ¯(ツ)

Gonna close the issue, nevertheless feel free to keep elaborating on your argument