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

Better support for bun workspaces #9204

Closed
zemse opened this issue Mar 2, 2024 · 2 comments
Closed

Better support for bun workspaces #9204

zemse opened this issue Mar 2, 2024 · 2 comments
Labels
enhancement New feature or request npm Something that relates to the npm-compatible client

Comments

@zemse
Copy link

zemse commented Mar 2, 2024

What is the problem this feature would solve?

I am experimenting with the bun workspaces.

- project-a
    - src 
    - package.json 
- project-b
    - src
    - package.json
- package.json

I found that it lacks these following issues:

  • allow installing packages in workspace projects from the root e.g. bun add <dep-name> --workspace project-a
  • allow triggering scripts in workspace projects from the root e.g. bun run <script> --workspace project-a
  • allow triggering scripts in all workspace projects from the root e.g. bun run build --workspaces --if-present

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

Cli commands like the following could be added to add this feature.

bun add <dep-name> --workspace project-a

bun run <script> --workspace project-a

bun run build  --workspaces --if-present

What alternatives have you considered?

No response

@zemse zemse added the enhancement New feature or request label Mar 2, 2024
@with-heart
Copy link

Related: #2232

@Electroid
Copy link
Contributor

We will do this, closing as a duplicate of #2232

@Electroid Electroid closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2024
@Electroid Electroid marked this as a duplicate of #2232 Mar 3, 2024
@Electroid Electroid added the npm Something that relates to the npm-compatible client label Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request npm Something that relates to the npm-compatible client
Projects
None yet
Development

No branches or pull requests

3 participants