superposition icon indicating copy to clipboard operation
superposition copied to clipboard

Migrate from `npm ci` to bun install

Open Datron opened this issue 1 year ago • 4 comments

bun install is faster than npm, but does not change any other behaviour. Its an easy win for faster setup

Datron avatar May 16 '24 06:05 Datron

Is this really needed? We don't even use npm that much, just once at the time of project setup and not even that many dependencies.

ShubhranshuSanjeev avatar May 17 '24 08:05 ShubhranshuSanjeev

Its needed for CI builds, not local builds

Datron avatar May 17 '24 08:05 Datron

Still, npm is not the one taking time here, cargo install is the culprit, that's the longest running command in our builds.

ShubhranshuSanjeev avatar May 22 '24 14:05 ShubhranshuSanjeev

cargo install is cached by the github action. npm ci takes 3 minutes on the pipeline. Bun should be able to make this faster

Datron avatar May 24 '24 06:05 Datron