bcomnes / npm-run-all2

A CLI tool to run multiple npm-scripts in parallel or sequential. (Maintenance fork)
MIT License
259 stars 12 forks source link

Leverage Node 22.3.0's `node --run` for `run-s` when possible. #155

Open jdalton opened 1 month ago

jdalton commented 1 month ago
semver.satisfies(process.versions.node, '>=22.3.0')

There could even be a separate node-s for the https://nodejs.org/api/cli.html#--run command. It does have limitations though so making it a separate command that falls back to a more run-s kind of command would be nice. The speed up is very nice.

voxpelli commented 1 month ago

The differences between pnpm, yarn, npm are already challenging – this feels a bit like one more standard 😂

That said, it could be a benefit that it has less features

(Someone should do a write up of the differences between them all so that we could ideally arrive at a standard for npm scripts with maybe two levels "lightweight" runner like node --run and "full featured" like the others, and ensure that the full featured ones are compatible with each other and a strict superset of the lightweight one and as such also compatible with it)

bcomnes commented 4 weeks ago

I would be nervous to default to it initially, but maybe we could flag it?