Let's say I have in my package.json:
{
"scripts": {
"prebuild": "some-command",
"build": "some-other-command"
}
}
If I now run npm run build -- --some-args
, the prebuild
command some-command
does not get the --some-args
passed to it. How can I pass this to all the pre/post scripts as well?