oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.23k stars 2.77k forks source link

inconsistent node_modules layout depends on order of installs #15124

Open mattfysh opened 1 day ago

mattfysh commented 1 day ago

What version of Bun is running?

1.1.34+5e5e7c60f

What platform is your computer?

Darwin 24.0.0 arm64 arm

What steps can reproduce the bug?

bun init -y
bun a drizzle-kit drizzle-orm
bun a postgres
touch drizzle.config.ts
bunx drizzle-kit migrate

What is the expected behavior?

Drizzle should complain about an empty drizzle.config.ts file

What do you see instead?

"The service was stopped" owing to an incorrect node_modules layout: https://github.com/evanw/esbuild/issues/3431

Additional information

Installing all dependencies together fixes the issue, i.e. bun a drizzle-kit drizzle-orm postgres

Jarred-Sumner commented 1 day ago

This is likely due to peer dependencies resolution, but @dylan-conway would know more than me