How to pass a command line argument to a nested script?
问题 NOTE: This is NOT about sending args to the top-level script, but to the script called by that script In my package.json, when I call a script that takes command line args directly, it works. But when I call a script that calls that other script, it's not passing the command line args to it. How do i pass them? { ... "takes-args": "somemodule", "calls-takes-args": "npm run takes-args" } When i run the below command, the args come through: npm run takes-args -- -env dev But when I run it