Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea] Volta as a faster script runner for Node.js projects #984

Open
zkochan opened this issue May 3, 2021 · 1 comment
Open

[Idea] Volta as a faster script runner for Node.js projects #984

zkochan opened this issue May 3, 2021 · 1 comment

Comments

@zkochan
Copy link

zkochan commented May 3, 2021

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.

@charlespierce
Copy link
Contributor

Thanks @zkochan, I think this suggestion could be a significant QoL improvement for those kinds of scripts. There are definitely some details that would need to be ironed out, but taking advantage of the native binaries and existing "launcher" behavior of Volta makes a lot of sense!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants