antfu-collective / taze

🥦 A modern cli tool that keeps your deps fresh
MIT License
2.88k stars 85 forks source link

refactor: reduce installation size by replacing `pacote` #108

Closed SukkaW closed 7 months ago

SukkaW commented 7 months ago

Description

Currently, the installation size of taze is 14 MiB, twice the size of npm-check-updated which is 7.3 MiB.

It turns out that the pacote could be the culprit. pacote introduces tons of npm core functionality while taze only utilize its package metadata fetching.

Linked Issues

N/A

Additional context

See also https://github.com/antfu/unconfig/pull/27

SukkaW commented 7 months ago

The tests are failing, converting the PR to draft now.

SukkaW commented 7 months ago

All tests pass on my machine, the PR is ready for review now @antfu

image
SukkaW commented 7 months ago
image

We did it! We reduce the installation size of taze by 35%!