π‘ TIL β the new `node --run` flag doesn't run life cycle scripts.
Node.js v23 was released last week and ships a new and stable `node --run` flag. The flag allows running `package.json` scripts without npm. It's slightly faster than `npm run` (we're talking a couple of hundred ms) but doesn't run life cycle scripts (e.g. `prestart`).
So `node --run` is not an `npm run` replacement.
Will you use it? I'd rather stick with `npm run` in this case... π€
@stefan For what it's worth, yarn removed lifecycle scripts support quite some time ago, pnpm support them but under a flag or config option.
Not trying to weigh against them actually, just pointing out that they did not reached consensus.
@stefan I'll stick with yarn anyway :)
@stefan I like that it doesn't print all of the npm bs when an error occurs