Here is my scripts object:
"scripts": {
"version-update": "node version-generator.js",
"build": "npm run version-update && webpack --mode production"
}
I want to pass some arguments to my version-update command on build command calling, like this:
npm run build -- --type=1
and fetch --type arg in my version-generator.js.
But when I did this, -- --type=1 only effects webpack --mode production and I can not achieve it in version-generator.js.