You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bun add vite
# expect this to be failed
bun esbuild --version
bun remove vite
# expect this to be failed
bun esbuild --version
Do same test for global
What is the expected behavior?
Vite package has the vite binary in its manifest, and 3 other binaries esbuild, rollup, nanoid from its transitive dependencies.
Users expect only vite command available after installation, especially when it is for global installation.
What do you see instead?
Bun installs all binaries from transitive dependencies. So vite, esbuild, rollup, nanoid commands are available.
And even Bun doesn't cleanup transitive binaries after uninstalling vite, so even after uninstallation esbuild, rollup, nanoid commands are available. The only option for cleanup is to remove and regenerate node_modules, and this is not possible for global installation.
What version of Bun is running?
1.0.9
What platform is your computer?
Linux 6.2.0-36-generic x86_64 x86_64
What steps can reproduce the bug?
Do same test for global
What is the expected behavior?
Vite package has the
vite
binary in its manifest, and 3 other binariesesbuild
,rollup
,nanoid
from its transitive dependencies.Users expect only
vite
command available after installation, especially when it is for global installation.What do you see instead?
Bun installs all binaries from transitive dependencies. So
vite
,esbuild
,rollup
,nanoid
commands are available.And even Bun doesn't cleanup transitive binaries after uninstalling
vite
, so even after uninstallationesbuild
,rollup
,nanoid
commands are available. The only option for cleanup is to remove and regenerate node_modules, and this is not possible for global installation.Additional information
https://gist.github.com/cometkim/eb2842d67b40e583e4886e9b897a6af0
The text was updated successfully, but these errors were encountered: