egoist / dum

An npm scripts runner written in Rust.
MIT License
1.52k stars 28 forks source link

support forwarding flags without `--` #17

Open mesqueeb opened 2 years ago

mesqueeb commented 2 years ago

one of the commands I tried to run with dum:

dum test test/internal/fetch.ts -w=@magnetarjs/core

didn't work

But just npm run does work.

npm run test test/internal/fetch.ts -w=@magnetarjs/core

PS: I use npm 7.14+ workspaces

egoist commented 2 years ago

Running dum won't forward flags to npm run, it's a standalone npm run implementation which currently doesn't support the -w flag. Flags behind the script name will be forwarded to your script instead.