oven-sh / bun

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

Package manager: support pnpm's recursive option #5350

Open pro-sumer opened 1 year ago

pro-sumer commented 1 year ago

What is the problem this feature would solve?

I have multiple projects under ~/Developer; each in their own folder.

When still using pnpm I could use this command in ~/Developer to update all projects at once:

pnpm --recursive update

Problem with bun: I have to run bun in all folders individually.

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

Can you please add pnpm's recursive option?

What alternatives have you considered?

Manually looping over all folders and running bun in every single folder individually...

cs-clarence commented 1 year ago

I want this too. You can use manypkg for the time being if you don't want to use pnpm -r

pro-sumer commented 1 year ago

Didn't know about manypkg; thanks for the suggestion!

For now I'll iterate over the folders in a zsh script, but I hope this feature request will be implemented some day.

jylin commented 11 months ago
pnpm -r —if-present build
pnpm -r —if-present test
pnpm -r —if-present deploy

is a useful pattern for CI. It would be great if Bun supported something similar!

Cygnusfear commented 8 months ago

Would love to have this functionality as well.

joepio commented 8 months ago

Related: https://github.com/oven-sh/bun/issues/2232

birkskyum commented 3 months ago

Moved to bun for workspaces recently, and this is really missing - think i have to move back to pnpm just for this.

bun --filter '*' update or similar would do the trick.

If dependabot worked with bun workspaces, that would also do the trick.

Cygnusfear commented 1 week ago

+1