Repository navigation
feat(create): let a new site be created with Bun - #101
Merged
flowtricks merged 1 commit intoNov 26, 2026
Merged
Conversation
Bun was detected for existing projects but could not be chosen when creating a site, and a Bun site could not be previewed on Windows. - Add Bun to the create-site managers and scaffold with `bun create`, which takes no `--yes` or `--` separator. - Start Bun as `bun` on Windows. It is bun.exe there, so the `.cmd` name used for npm, pnpm and Yarn was never found (packageManagerProgram). - Run the scaffolder under a preload that makes create-lumos' Windows symlink fallback copy folders; its `copyFile` on a folder always fails with EPERM when symlinks are refused (no Developer Mode or admin). - Find `astro.exe`, which Bun leaves in node_modules/.bin instead of `astro.cmd`, so the preview no longer reports astro as not installed (localAstroBin). - Add a Copy button to error toasts so a message can be pasted elsewhere. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
What
Lets a new site be created with Bun, and makes a Bun site work on Windows end to end.
Bun was already detected for existing projects (
packageManagerfield,bun.lock) but could not be chosen in the create-site dialog, and a Bun site could not be previewed on Windows.Changes
bunis added toCREATE_PACKAGE_MANAGERS. The starter is scaffolded withbun create lumos@latest <name> --no-install(Bun'screatetakes no--yesor--separator), then installed withbun install.bun.exeon Windows, so the.cmdname used for npm, pnpm and Yarn was never found. NewpackageManagerProgram()picks the right one; used by the install, the--versioncheck and the EmDash add.create-lumos:create-lumos0.3.9 links.claude/skills/*with symlinks and, when Windows refuses them (no Developer Mode or admin), falls back tocopyFileon a folder, which always fails withEPERM. The scaffolder now runs under a smallNODE_OPTIONS --requirepreload that makes that one case copy the folder recursively. Files are untouched. Works with both npm and Bun. This should also be fixed upstream increate-lumos.node_modules/.bin/astro.exe(noastro.cmd). NewlocalAstroBin()accepts either; used by the dev server, commit preview, thumbnails and the dependencies check.workspace.notifications.copy/copiedstrings in all 18 locales.Testing
npm run check:changedpasses.packageManager.test.ts(Bun create + Windows program names),starter.test.js(bun createargs, copy-folder preload),projectFiles.test.ts(astro.exelookup, Windows only).Notes for review
--no-verify). On my machine it fails for environment reasons unrelated to this change: Developer Mode is off so symlink tests instudio/test/assets.test.tshitEPERM, and a straypnpm-lock.yamlin my home folder breaks the lockfile-detection test (detection walks up parent folders). Please rely on CI for the full run.npm create; only Bun uses its owncreate.🤖 Generated with Claude Code