From b67100ba012957148e3d4b4732bf045c78c141f7 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 3 Aug 2023 15:44:09 -0500 Subject: [PATCH] fix: handle missing version --- packages/create-astro/src/messages.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/create-astro/src/messages.ts b/packages/create-astro/src/messages.ts index 0856a71536da..93778a8db4f5 100644 --- a/packages/create-astro/src/messages.ts +++ b/packages/create-astro/src/messages.ts @@ -93,9 +93,9 @@ export const getVersion = () => export const log = (message: string) => stdout.write(message + '\n'); export const banner = async (version: string) => log( - `\n${label('astro', color.bgGreen, color.black)} ${color.green( + `\n${label('astro', color.bgGreen, color.black)} ${version ? color.green( color.bold(`v${version}`) - )} ${color.bold('Launch sequence initiated.')}` + ): ''} ${color.bold('Launch sequence initiated.')}` ); export const info = async (prefix: string, text: string) => {