Reputation: 24069
"scripts": {
"dev": "npm run development",
"development": "run-something",
....
I call my script via:
npm run dev
This is shorthand and just runs the regular command npm-run-development
.
How can I pass arguments from the shorthand command to the regular command? For example how can the test argument be passed from npm run dev
, to npm run development
?
npm run dev -- --test=abc
Upvotes: 1
Views: 52
Reputation: 22911
Adding --
to the end of your shorthand commands should work:
"scripts": {
"dev": "npm run development --",
"development": "run-something",
Upvotes: 3