From 857ae26b2ec3ab9f06543076e3d102acc51dff6d Mon Sep 17 00:00:00 2001 From: matthewp Date: Tue, 3 Jan 2023 19:08:59 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/build/generate.ts | 6 +----- packages/astro/src/core/render/result.ts | 3 --- packages/astro/src/integrations/index.ts | 3 +-- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts index fd8dd75a5..968e1b648 100644 --- a/packages/astro/src/core/build/generate.ts +++ b/packages/astro/src/core/build/generate.ts @@ -80,11 +80,7 @@ export async function generatePages(opts: StaticBuildOptions, internals: BuildIn const serverEntry = opts.buildConfig.serverEntry; const outFolder = ssr ? opts.buildConfig.server : getOutDirWithinCwd(opts.settings.config.outDir); - if ( - opts.settings.config.output === 'server' && - !hasPrerenderedPages(internals) - ) - return; + if (opts.settings.config.output === 'server' && !hasPrerenderedPages(internals)) return; const verb = ssr ? 'prerendering' : 'generating'; info(opts.logging, null, `\n${bgGreen(black(` ${verb} static routes `))}`); diff --git a/packages/astro/src/core/render/result.ts b/packages/astro/src/core/render/result.ts index 0bc054cd7..fad247955 100644 --- a/packages/astro/src/core/render/result.ts +++ b/packages/astro/src/core/render/result.ts @@ -1,5 +1,4 @@ import type { MarkdownRenderingOptions } from '@astrojs/markdown-remark'; -import { bold } from 'kleur/colors'; import type { AstroGlobal, AstroGlobalPartial, @@ -15,8 +14,6 @@ import { renderJSX } from '../../runtime/server/jsx.js'; import { AstroCookies } from '../cookies/index.js'; import { AstroError, AstroErrorData } from '../errors/index.js'; import { LogOptions, warn } from '../logger/core.js'; -import { isScriptRequest } from './script.js'; -import { isCSSRequest } from './util.js'; const clientAddressSymbol = Symbol.for('astro.clientAddress'); diff --git a/packages/astro/src/integrations/index.ts b/packages/astro/src/integrations/index.ts index 3733c6b2d..4c59783c0 100644 --- a/packages/astro/src/integrations/index.ts +++ b/packages/astro/src/integrations/index.ts @@ -5,7 +5,6 @@ import { fileURLToPath } from 'node:url'; import type { InlineConfig, ViteDevServer } from 'vite'; import { AstroConfig, - AstroIntegration, AstroRenderer, AstroSettings, BuildConfig, @@ -15,7 +14,7 @@ import { import type { SerializedSSRManifest } from '../core/app/types'; import type { PageBuildData } from '../core/build/types'; import { mergeConfig } from '../core/config/config.js'; -import { info, LogOptions, warn } from '../core/logger/core.js'; +import { info, LogOptions } from '../core/logger/core.js'; async function withTakingALongTimeMsg({ name,