Skip to content

Commit 565db3c

Browse files
authored
Fix incorrect terminal message after installation (#4402)
* Fix incorrect terminal message after installation * Updated changeset
1 parent ae04524 commit 565db3c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/few-kiwis-breathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"blitz": patch
3+
---
4+
5+
Fixed incorrect terminal message after creating a new Blitz project to use the correct command (`npm run dev` or `yarn dev`).

packages/blitz/src/cli/commands/new.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ const newApp: CliCommand = async () => {
274274
)
275275
}
276276

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

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

0 commit comments

Comments
 (0)