From 6964b6f9a6a9b65b3f1c576093cba18562a2d2c3 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 7 Mar 2024 19:51:22 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/cli/add/index.ts | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/packages/astro/src/cli/add/index.ts b/packages/astro/src/cli/add/index.ts index 65684e9a5c..db79d51542 100644 --- a/packages/astro/src/cli/add/index.ts +++ b/packages/astro/src/cli/add/index.ts @@ -85,8 +85,8 @@ import { db } from 'astro:db'; export default async function seed() { // TODO } -` -} +`, +}; const OFFICIAL_ADAPTER_TO_IMPORT_MAP: Record = { netlify: '@astrojs/netlify', @@ -208,7 +208,11 @@ export async function add(names: string[], { flags }: AddOptions) { if (!existsSync(new URL('./db/', root))) { logger.info( 'SKIP_FORMAT', - `\n ${magenta(`Astro will scaffold ${green('./db/config.ts')}${magenta(' and ')}${green('./db/seed.ts')}${magenta(' files.')}`)}\n` + `\n ${magenta( + `Astro will scaffold ${green('./db/config.ts')}${magenta(' and ')}${green( + './db/seed.ts' + )}${magenta(' files.')}` + )}\n` ); if (await askToContinue({ flags })) { @@ -216,7 +220,7 @@ export async function add(names: string[], { flags }: AddOptions) { await Promise.all([ fs.writeFile(new URL('./db/config.ts', root), STUBS.DB_CONFIG, { encoding: 'utf-8' }), fs.writeFile(new URL('./db/seed.ts', root), STUBS.DB_SEED, { encoding: 'utf-8' }), - ]) + ]); } else { logger.info( 'SKIP_FORMAT', @@ -339,7 +343,10 @@ export async function add(names: string[], { flags }: AddOptions) { switch (configResult) { case UpdateResult.cancelled: { - logger.info('SKIP_FORMAT', msg.cancelled(`Your configuration has ${bold('NOT')} been updated.`)); + logger.info( + 'SKIP_FORMAT', + msg.cancelled(`Your configuration has ${bold('NOT')} been updated.`) + ); break; } case UpdateResult.none: { @@ -366,7 +373,8 @@ export async function add(names: string[], { flags }: AddOptions) { logger.info( 'SKIP_FORMAT', msg.success( - `Added the following integration${integrations.length === 1 ? '' : 's' + `Added the following integration${ + integrations.length === 1 ? '' : 's' } to your project:\n${list}` ) );