Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/quick-cheetahs-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-cloudflare": patch
---

fix: make sure that using the current directory doesn't generate an `undefined undefined` log in the output summary.
6 changes: 3 additions & 3 deletions packages/create-cloudflare/src/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export const printSummary = async (ctx: C3Context) => {

const dirRelativePath = relative(ctx.originalCWD, ctx.project.path);
const nextSteps = [
dirRelativePath
? ["Navigate to the new directory", `cd ${dirRelativePath}`]
: [],
...(dirRelativePath
? [["Navigate to the new directory", `cd ${dirRelativePath}`]]
: []),
[
"Run the development server",
quoteShellArgs([npm, "run", ctx.template.devScript ?? "start"]),
Expand Down