Skip to content

Commit

Permalink
Fix incorrect terminal message after installation (#4402)
Browse files Browse the repository at this point in the history
* Fix incorrect terminal message after installation

* Updated changeset
  • Loading branch information
doe-base authored Dec 23, 2024
1 parent ae04524 commit 565db3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/few-kiwis-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"blitz": patch
---

Fixed incorrect terminal message after creating a new Blitz project to use the correct command (`npm run dev` or `yarn dev`).
2 changes: 1 addition & 1 deletion packages/blitz/src/cli/commands/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ const newApp: CliCommand = async () => {
)
}

postInstallSteps.push(`${projectPkgManger} blitz dev`)
postInstallSteps.push(`${projectPkgManger} ${projectPkgManger === "npm" ? "run " : ""}dev`);

console.log("\n Your new Blitz app is ready! Next steps:")
postInstallSteps.forEach((step, index) => {
Expand Down

0 comments on commit 565db3c

Please sign in to comment.