Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package manager: support pnpm's recursive option #5350

Open
pro-sumer opened this issue Sep 14, 2023 · 7 comments
Open

Package manager: support pnpm's recursive option #5350

pro-sumer opened this issue Sep 14, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@pro-sumer
Copy link

pro-sumer commented Sep 14, 2023

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...

@pro-sumer pro-sumer added the enhancement New feature or request label Sep 14, 2023
@cs-clarence
Copy link

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

@pro-sumer
Copy link
Author

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
Copy link

jylin commented Oct 17, 2023

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
Copy link

Would love to have this functionality as well.

@joepio
Copy link

joepio commented Jan 16, 2024

Related: #2232

@birkskyum
Copy link
Collaborator

birkskyum commented Jul 1, 2024

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
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants