Skip to content

Commit

Permalink
fix: handle missing version
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Aug 3, 2023
1 parent cd0912c commit b67100b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-astro/src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit b67100b

Please sign in to comment.