From 21d617e07af9e4ef3324b0a0de33296cc4f3d4c6 Mon Sep 17 00:00:00 2001 From: matthewp Date: Fri, 25 Mar 2022 16:08:51 +0000 Subject: [PATCH] [ci] format --- src/core/build/index.ts | 4 ++-- src/core/logger.ts | 9 +++++++-- src/integrations/index.ts | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/core/build/index.ts b/src/core/build/index.ts index 14950b2f91c5..7a360b01e318 100644 --- a/src/core/build/index.ts +++ b/src/core/build/index.ts @@ -82,7 +82,7 @@ class AstroBuilder { client: new URL('./client/', this.config.dist), server: new URL('./server/', this.config.dist), serverEntry: 'entry.mjs', - staticMode: undefined + staticMode: undefined, }; await runHookBuildStart({ config: this.config, buildConfig }); @@ -173,7 +173,7 @@ class AstroBuilder { // You're done! Time to clean up. await viteServer.close(); - await runHookBuildDone({ config: this.config, pages: pageNames, routes: Object.values(allPages).map(pd => pd.route) }); + await runHookBuildDone({ config: this.config, pages: pageNames, routes: Object.values(allPages).map((pd) => pd.route) }); if (logging.level && levels[logging.level] <= levels['info']) { const buildMode = this.config.buildOptions.experimentalSsr ? 'ssr' : 'static'; diff --git a/src/core/logger.ts b/src/core/logger.ts index 75a1e36fe23a..f1bce5d6f825 100644 --- a/src/core/logger.ts +++ b/src/core/logger.ts @@ -218,7 +218,12 @@ export function timerMessage(message: string, startTime: number = performance.no * A warning that SSR is experimental. Remove when we can. */ export function warnIfUsingExperimentalSSR(opts: LogOptions, config: AstroConfig) { - if(isBuildingToSSR(config)) { - warn(opts, 'warning', bold(`Warning:`), ` SSR support is still experimental and subject to API changes. If using in production pin your dependencies to prevent accidental breakage.`); + if (isBuildingToSSR(config)) { + warn( + opts, + 'warning', + bold(`Warning:`), + ` SSR support is still experimental and subject to API changes. If using in production pin your dependencies to prevent accidental breakage.` + ); } } diff --git a/src/integrations/index.ts b/src/integrations/index.ts index 15ab427eaf04..b04caeaf1710 100644 --- a/src/integrations/index.ts +++ b/src/integrations/index.ts @@ -91,7 +91,7 @@ export async function runHookBuildStart({ config, buildConfig }: { config: Astro } } -export async function runHookBuildDone({ config, pages, routes }: { config: AstroConfig; pages: string[], routes: RouteData[] }) { +export async function runHookBuildDone({ config, pages, routes }: { config: AstroConfig; pages: string[]; routes: RouteData[] }) { for (const integration of config.integrations) { if (integration.hooks['astro:build:done']) { await integration.hooks['astro:build:done']({ pages: pages.map((p) => ({ pathname: p })), dir: config.dist, routes });