3 ms·
Does yarn support custom `run` commands like npm? For example: "scripts": { "dev": "node api.js --config config-dev.json" } $ npm run dev
by nodesocket 10y ago
Does yarn support custom `run` commands like npm?
For example:
"scripts": { "dev": "node api.js --config config-dev.json" }
$ npm run dev
- steveklabnik 10y agoYes. See the diff here for an example of moving a project from one to another: https://github.com/rust-lang/crates.io/pull/457 https://github.com/rust-lang/crates.io/pull/457 lots of "npm run" -> "yarn run" there.
- nodesocket 10y agoSweet. Would be cool to have yarn support passing dynamic arguments into scripts/run commands.