From 8bf3fc5e214d04b9aca90c59ce38d5ad220e0b51 Mon Sep 17 00:00:00 2001 From: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com> Date: Fri, 25 Oct 2024 09:00:49 -0400 Subject: [PATCH] tweak package manager run cmd (#222) --- .changeset/twenty-bees-mate.md | 5 +++++ packages/cli/commands/create.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/twenty-bees-mate.md diff --git a/.changeset/twenty-bees-mate.md b/.changeset/twenty-bees-mate.md new file mode 100644 index 00000000..4f737b7f --- /dev/null +++ b/.changeset/twenty-bees-mate.md @@ -0,0 +1,5 @@ +--- +'sv': patch +--- + +fix: adjusted next steps instructions for `create` diff --git a/packages/cli/commands/create.ts b/packages/cli/commands/create.ts index 806bcb14..dcfabe88 100644 --- a/packages/cli/commands/create.ts +++ b/packages/cli/commands/create.ts @@ -60,10 +60,11 @@ export const create = new Command('create') initialSteps.push(`${i++}: ${highlight(`${pm} install`)}`); } + const pmRun = pm === 'npm' ? 'npm run dev --' : `${pm} dev`; const steps = [ ...initialSteps, `${i++}: ${highlight('git init && git add -A && git commit -m "Initial commit"')} (optional)`, - `${i++}: ${highlight(`${pm} run dev -- --open`)}`, + `${i++}: ${highlight(`${pmRun} --open`)}`, '', `To close the dev server, hit ${highlight('Ctrl-C')}`, '',