oven-sh / bun

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

Allow to install a package to a specific workspace #7182

Open flayks opened 1 year ago

flayks commented 1 year ago

What is the problem this feature would solve?

Like pnpm would allow to install a package to a specific workspace using pnpm -F <workspace> add <packageName>, it would be great to be able to do the same with Bun, since it supports workspaces nicely and natively.

What is the feature you are proposing to solve the problem?

Add a feature to Bun to install a package to a specific workspace:

bun -w <workspace> i <packageName>

# example
bun -w website i sanity

I don't really vibe with the -F (filter) from pnpm, I feel -w would make more sense to target a workspace from the package.json name

What alternatives have you considered?

No response

flayks commented 2 months ago

Is it something that could be implemented to Bun? It would be dope!

flayks commented 1 week ago

I can see that the idea is getting interest, is that something the team has considered?