npm-watch
npm-watch copied to clipboard
Pass arguments to npm script?
"scripts": {
"build": "node build.js",
"watch": "npm-watch build"
},
"watch": {
"build": "*.js"
}
npm run watch -- --param=value
should effectively do:
npm run build --param=value
@M-Zuber hello?
Sorry been a bit behind in getting to issues here... 😢 Is this a feature request, or something you expected to work but doesn't?
Feature request.
We can use npx instead of npm run
, which will be implemented into a future version of npm as npm exec
.
We can use npx instead of npm run, which will be implemented into a future version of npm as npm exec.
Sounds interesting, would have to read up more on it
So I looked into this some, and the current set up will not allow for this without some uncomfortable twisting. Leaving this open, but it is further down on the roadmap