diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index 35cbf9dfe..a1f5b3b5b 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -39,7 +39,7 @@ export async function main() { console.log(`${green(`>`)} ${gray(`Prepare for liftoff.`)}`); console.log(`${green(`>`)} ${gray(`Gathering mission details...`)}`); - const cwd = args['_'][2] as string || '.'; + const cwd = (args['_'][2] as string) || '.'; if (fs.existsSync(cwd)) { if (fs.readdirSync(cwd).length > 0) { const response = await prompts({