antfu-collective / taze

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

fix: change the build config to bundle deps correctly, fix #111 #112

Closed SukkaW closed 5 months ago

SukkaW commented 5 months ago

Description

111 is caused by the Rollup (unbuild uses Rollup under the hood) incorrectly bundling @npmcli/config (and its transitive dependency cacache, which requires its own package.json).

The PR provides a workaround by changing how dists are bundled. A test case has also been added to ensure the CLI itself should never crash.

Linked Issues

111

Additional context

This is a workaround that works for now. I am still investigating a better solution that solves the issue once and for all.

Here are the backgrounds behind #111 and this PR:

antfu commented 5 months ago

Thanks for the detailed explaination!