Repository navigation
Use Bun for packages and scripts - #235
Merged
Merged
Conversation
Replace npm with Bun as the package manager and script runner. Astro and Playwright still run on Node, pinned by .nvmrc. - Migrate package-lock.json to bun.lock (same resolved versions) - Add .bun-version and use oven-sh/setup-bun in the visual workflow - Use bunx/bun run in playwright.config.ts, README and AGENTS.md - Hold Renovate bun-version updates, since Cloudflare Pages reads BUN_VERSION from the dashboard, not .bun-version Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DryVDir46sG3viwon3eY7Q
Deploying dev-blog with
|
| Latest commit: |
9b397ab
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c752c205.dev-blog-10f.pages.dev |
| Branch Preview URL: | https://claude-project-thread-kxytqy.dev-blog-10f.pages.dev |
Pages ignores .bun-version, so pinning BUN_VERSION in the dashboard would need a manual bump for every Bun release. Use the build image's default Bun instead, and let Renovate update .bun-version for CI without holding it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DryVDir46sG3viwon3eY7Q
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Austin · project thread
Summary
Bun replaces npm as the package manager and script runner. Astro and Playwright still run on Node, which
.nvmrcpins as before.package-lock.json→bun.lock. Bun migrated the npm lockfile, so every resolved version stays the same (for example astro 7.4.13, @playwright/test 1.65.1, sharp 0.35.5)..bun-version(1.4.4) for CI and local use. Renovate updates it like any other dependency, with no hold.visual.ymlkeepssetup-nodefor the runtime, addsoven-sh/setup-bun, and usesbun install --frozen-lockfile,bunxandbun run.playwright.config.ts,README.mdandAGENTS.mduse the Bun commands.Bun version on Cloudflare Pages
Pages ignores
.bun-versionand reads only aBUN_VERSIONdashboard variable. This PR does not set that variable, so Pages uses its build image's default Bun (1.4.4 today, the same as.bun-version). Cloudflare updates that default itself and gives 3 months' notice before a Bun update that may break builds. Nothing needs a manual bump.The tradeoff: CI and Pages can briefly run different Bun versions after a Renovate bump. For a static build with a stable lockfile format, that's low risk.
Verification
bun install --frozen-lockfilepasses, andbun pm untrustedreports no skipped install scripts.bun run buildproduces adist/that is byte-for-byte identical tonpm ci && npm run buildon master.Cloudflare Pages dashboard (Austin)
bun run build(Settings → Build). The currentnpm run buildalso works, because it only runs the script.BUN_VERSION.bun installin the install step.🤖 Generated with Claude Code
https://claude.ai/code/session_01DryVDir46sG3viwon3eY7Q