Skip to content

Commit 6eaead3

Browse files
committed
Create Qwik - Next Steps Deno Corrected - Bug #7520
Currently, when creating a new qwik app using deno, the cli output shows 'next steps' as 'deno start'. This is incorrect, as deno needs the keyword 'task' by default. Corrected to 'deno task start'.
1 parent ec0bd04 commit 6eaead3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.changeset/easy-boxes-win.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'create-qwik': patch
3+
---
4+
5+
fix: create-qwik logAppCreated.ts now displays correct next steps for deno.
6+
7+
After using the create-qwik command, the logAppCreated.ts file was not displaying the correct next steps for deno. Prior to this fix it would display "deno start" instead of "deno task start". This would cause a failure to run, as deno requires the 'task' keyword. This fixes bug 7520

packages/create-qwik/src/helpers/logAppCreated.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ export function logAppCreated(pkgManager: string, result: CreateAppResult, ranIn
4040
if (!ranInstall) {
4141
outString.push(` ${pkgManager} install`);
4242
}
43-
outString.push(` ${pkgManager} start`);
43+
if (pkgManager === 'deno') {
44+
outString.push(` deno task start`);
45+
} else {
46+
outString.push(` ${pkgManager} start`);
47+
}
4448
outString.push(``);
4549

4650
note(outString.join('\n'), 'Result');

0 commit comments

Comments
 (0)