diff --git a/.changeset/brown-wolves-tan.md b/.changeset/brown-wolves-tan.md new file mode 100644 index 000000000..4f11f4534 --- /dev/null +++ b/.changeset/brown-wolves-tan.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +Update 'dev' command for Bun users diff --git a/packages/create-astro/src/actions/next-steps.ts b/packages/create-astro/src/actions/next-steps.ts index 1b3a0db28..01c1963d9 100644 --- a/packages/create-astro/src/actions/next-steps.ts +++ b/packages/create-astro/src/actions/next-steps.ts @@ -5,7 +5,12 @@ import { nextSteps, say } from '../messages.js'; export async function next(ctx: Pick) { let projectDir = path.relative(process.cwd(), ctx.cwd); - const devCmd = ctx.pkgManager === 'npm' ? 'npm run dev' : `${ctx.pkgManager} dev`; + const devCmd = + ctx.pkgManager === 'npm' + ? 'npm run dev' + : ctx.pkgManager === 'bun' + ? 'bun run dev' + : `${ctx.pkgManager} dev`; await nextSteps({ projectDir, devCmd }); if (!ctx.skipHouston) {