summaryrefslogtreecommitdiff
path: root/packages/create-astro/src
diff options
context:
space:
mode:
authorGravatar bluwy <bluwy@users.noreply.github.com> 2023-09-22 13:20:50 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-09-22 13:20:50 +0000
commitf35a55bd4f5c722a82326f351e1adb448b6f9476 (patch)
treee2cf01a9d7370a4fd32fe41d1e2d30beb7c64ca7 /packages/create-astro/src
parentb64dd45c0d641f9f2ed997e2cbdf8a6b0193195f (diff)
downloadastro-f35a55bd4f5c722a82326f351e1adb448b6f9476.tar.gz
astro-f35a55bd4f5c722a82326f351e1adb448b6f9476.tar.zst
astro-f35a55bd4f5c722a82326f351e1adb448b6f9476.zip
[ci] format
Diffstat (limited to 'packages/create-astro/src')
-rw-r--r--packages/create-astro/src/actions/template.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/create-astro/src/actions/template.ts b/packages/create-astro/src/actions/template.ts
index eaebe2360..8d22e95b1 100644
--- a/packages/create-astro/src/actions/template.ts
+++ b/packages/create-astro/src/actions/template.ts
@@ -9,11 +9,11 @@ import { error, info, spinner, title } from '../messages.js';
export async function template(
ctx: Pick<Context, 'template' | 'prompt' | 'yes' | 'dryRun' | 'exit'>
) {
- if (!ctx.template && ctx.yes) ctx.template = 'basics';
+ if (!ctx.template && ctx.yes) ctx.template = 'basics';
- if (ctx.template) {
- await info('tmpl', `Using ${color.reset(ctx.template)}${color.dim(' as project template')}`);
- } else {
+ if (ctx.template) {
+ await info('tmpl', `Using ${color.reset(ctx.template)}${color.dim(' as project template')}`);
+ } else {
const { template: tmpl } = await ctx.prompt({
name: 'template',
type: 'select',