Skip to content

feat: add bun support to package manager component#29433

Merged
MohamedH1998 merged 2 commits intoproductionfrom
feat/add-bun-to-pkm
Apr 1, 2026
Merged

feat: add bun support to package manager component#29433
MohamedH1998 merged 2 commits intoproductionfrom
feat/add-bun-to-pkm

Conversation

@MohamedH1998
Copy link
Copy Markdown
Contributor

Summary

Add bun support to package manager component

Screenshots (optional)

Screenshot 2026-03-28 at 21 50 03

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
*.ts @cloudflare/content-engineering, @kodster28

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 28, 2026

@Cherry
Copy link
Copy Markdown
Contributor

Cherry commented Mar 28, 2026

Is Bun actively supported in wrangler (etc.)? This was intentionally removed in the past as it's caused issues in wrangler, c3 and others: #22525

Other ref: cloudflare/workers-sdk#8889

@threepointone
Copy link
Copy Markdown
Contributor

threepointone commented Mar 28, 2026

for package management, it should work just fine there. for wrangler dev, we should be using node when the cli is started up, if not that's a bug.

@threepointone
Copy link
Copy Markdown
Contributor

tbh even if it fails with bun, we should file bugs there, we're friends and they should be able to fix it

@Cherry
Copy link
Copy Markdown
Contributor

Cherry commented Mar 28, 2026

Agreed bugs should be filed and fixed, but I believe this component is used by more than just package management today, like for actual deploy/dev commands, such as:

etc.

which could/will have various issues with Bun and are very much not supported as per: https://x.com/MattieTK/status/2037810746868822458

Perhaps this should only show bun if the type isn't set to create, exec, run, etc. and any other non-package management commands? I'd argue it's still pretty confusing from a UX and education standpoint to show bun commands at all until it works across the board though personally.

@threepointone
Copy link
Copy Markdown
Contributor

Passed them on to the team!

@MattieTK
Copy link
Copy Markdown
Member

@MohamedH1998 I agree it would be good to expand the component to not show the following commands in bun if that is the prop delivered

Perhaps this should only show bun if the type isn't set to create, exec, run, etc.

Bun is a great package manager so I appreciate the value in doing this, but we don't want folks to run into problems using bun as their script runner.

@MattIPv4
Copy link
Copy Markdown
Contributor

I'd argue it's still pretty confusing from a UX and education standpoint to show bun commands at all until it works across the board though personally.

Just want to ++ this, adding any bun commands to the docs, when it doesn't work with everything, seems like a pretty confusing message to be sending to new users who won't understand this nuance... they'll start using bun because some docs commands have it, and then run into commands that don't work...

@threepointone
Copy link
Copy Markdown
Contributor

it's now been scoped to only add/install, so I think it's ready to go?

@MohamedH1998 MohamedH1998 merged commit 1a36b8f into production Apr 1, 2026
21 of 22 checks passed
@MohamedH1998 MohamedH1998 deleted the feat/add-bun-to-pkm branch April 1, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants