Skip to content

Commit

Permalink
tweak package manager run cmd (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 authored Oct 25, 2024
1 parent ce6b878 commit 8bf3fc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twenty-bees-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': patch
---

fix: adjusted next steps instructions for `create`
3 changes: 2 additions & 1 deletion packages/cli/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')}`,
'',
Expand Down

0 comments on commit 8bf3fc5

Please sign in to comment.