Skip to content

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

@zkochan

Description

@zkochan

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions