-
Notifications
You must be signed in to change notification settings - Fork 327
Open
Description
npm/pnpm/yarn run are slow (related pnpm issue)
The fastest Node.js script runner is currently yarn run, which takes about 0.19sec to run a simple echo hi command. The scripts are frequently combined or nested (e.g., "test": "jest && yarn run clear"), so this overhead can be quiet noticeable.
There is a package manager written in Reason called esy and I've heard it runs scripts instantaneiously, providing a great DX.
I am the maintainer of pnpm, which is written in TypeScript and I see the limitations of Node.js. yarn run is probably the fastest we can get with a Node.js CLI. But Volta is compiled to native code, so I think it may implement a much faster volta run command, which could become one of the main reasons to use Volta.
vjpr, Pronian, suasgn and mattstrayer