From 86acd0f1d5f18a0ee512e1250fd4278c32f46338 Mon Sep 17 00:00:00 2001 From: bluwy Date: Tue, 19 Sep 2023 09:11:23 +0000 Subject: [PATCH] [ci] format --- packages/create-astro/src/actions/project-name.ts | 4 +++- packages/create-astro/src/actions/template.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/create-astro/src/actions/project-name.ts b/packages/create-astro/src/actions/project-name.ts index bb4d5feb66..8802387af0 100644 --- a/packages/create-astro/src/actions/project-name.ts +++ b/packages/create-astro/src/actions/project-name.ts @@ -6,7 +6,9 @@ import { info, log, title } from '../messages.js'; import { isEmpty, toValidName } from './shared.js'; -export async function projectName(ctx: Pick) { +export async function projectName( + ctx: Pick +) { await checkCwd(ctx.cwd); if (!ctx.cwd || !isEmpty(ctx.cwd)) { diff --git a/packages/create-astro/src/actions/template.ts b/packages/create-astro/src/actions/template.ts index ae9e6eb5ad..253c9fab1f 100644 --- a/packages/create-astro/src/actions/template.ts +++ b/packages/create-astro/src/actions/template.ts @@ -6,7 +6,9 @@ import fs from 'node:fs'; import path from 'node:path'; import { error, info, spinner, title } from '../messages.js'; -export async function template(ctx: Pick) { +export async function template( + ctx: Pick +) { if (ctx.yes) { ctx.template = 'basics'; await info('tmpl', `Using ${color.reset(ctx.template)}${color.dim(' as project template')}`);