Skip to content

Commit f4dfe2d

Browse files
nyqykknyqykkchenjiahan
authored
feat: support no notes (#40)
Co-authored-by: nyqykk <nieyan.kk@bytedance.com> Co-authored-by: neverland <jait.chen@foxmail.com>
1 parent 9da69e4 commit f4dfe2d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export async function create({
302302
}
303303
}
304304

305-
const nextSteps = noteInformation?.length
305+
const nextSteps = noteInformation
306306
? noteInformation
307307
: [
308308
`1. ${color.cyan(`cd ${targetDir}`)}`,
@@ -311,7 +311,9 @@ export async function create({
311311
`4. ${color.cyan(`${pkgManager} run dev`)}`,
312312
];
313313

314-
note(nextSteps.map((step) => color.reset(step)).join('\n'), 'Next steps');
314+
if (nextSteps.length) {
315+
note(nextSteps.map((step) => color.reset(step)).join('\n'), 'Next steps');
316+
}
315317

316318
outro('All set, happy coding!');
317319
}

0 commit comments

Comments
 (0)