From 4c33576a6c52fd57c32cb4b4cbc2965a29f2eaf3 Mon Sep 17 00:00:00 2001 From: matthewp Date: Mon, 5 Jun 2023 15:27:27 +0000 Subject: [PATCH] [ci] format --- examples/middleware/astro.config.mjs | 2 +- packages/astro/src/core/app/index.ts | 3 +-- packages/astro/src/core/app/types.ts | 2 -- packages/astro/src/core/build/plugins/plugin-ssr.ts | 1 - packages/astro/src/core/redirects/component.ts | 2 +- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/middleware/astro.config.mjs b/examples/middleware/astro.config.mjs index e93513956..1d4662423 100644 --- a/examples/middleware/astro.config.mjs +++ b/examples/middleware/astro.config.mjs @@ -8,6 +8,6 @@ export default defineConfig({ mode: 'standalone', }), experimental: { - middleware: true + middleware: true, }, }); diff --git a/packages/astro/src/core/app/index.ts b/packages/astro/src/core/app/index.ts index a3317c393..56d22eafc 100644 --- a/packages/astro/src/core/app/index.ts +++ b/packages/astro/src/core/app/index.ts @@ -1,5 +1,4 @@ import type { - ComponentInstance, EndpointHandler, ManifestData, MiddlewareResponseHandler, @@ -9,6 +8,7 @@ import type { import type { RouteInfo, SSRManifest as Manifest } from './types'; import mime from 'mime'; +import type { SinglePageBuiltModule } from '../build/types'; import { attachToResponse, getSetCookiesFromResponse } from '../cookies/index.js'; import { callEndpoint, createAPIContext } from '../endpoint/index.js'; import { consoleLogDestination } from '../logger/console.js'; @@ -29,7 +29,6 @@ import { createStylesheetElementSet, } from '../render/ssr-element.js'; import { matchRoute } from '../routing/match.js'; -import type { SinglePageBuiltModule } from '../build/types'; export { deserializeManifest } from './common.js'; const clientLocalsSymbol = Symbol.for('astro.locals'); diff --git a/packages/astro/src/core/app/types.ts b/packages/astro/src/core/app/types.ts index 57d123fdb..1283f1a10 100644 --- a/packages/astro/src/core/app/types.ts +++ b/packages/astro/src/core/app/types.ts @@ -1,7 +1,5 @@ import type { MarkdownRenderingOptions } from '@astrojs/markdown-remark'; import type { - AstroMiddlewareInstance, - ComponentInstance, RouteData, SerializedRouteData, SSRComponentMetadata, diff --git a/packages/astro/src/core/build/plugins/plugin-ssr.ts b/packages/astro/src/core/build/plugins/plugin-ssr.ts index 79da987ee..6ffbc2526 100644 --- a/packages/astro/src/core/build/plugins/plugin-ssr.ts +++ b/packages/astro/src/core/build/plugins/plugin-ssr.ts @@ -14,7 +14,6 @@ import { getOutFile, getOutFolder } from '../common.js'; import { cssOrder, mergeInlineCss, type BuildInternals } from '../internal.js'; import type { AstroBuildPlugin } from '../plugin'; import type { StaticBuildOptions } from '../types'; -import { MIDDLEWARE_MODULE_ID } from './plugin-middleware.js'; import { getVirtualModulePageNameFromPath } from './plugin-pages.js'; import { RENDERERS_MODULE_ID } from './plugin-renderers.js'; diff --git a/packages/astro/src/core/redirects/component.ts b/packages/astro/src/core/redirects/component.ts index dec8e04c9..f76b82517 100644 --- a/packages/astro/src/core/redirects/component.ts +++ b/packages/astro/src/core/redirects/component.ts @@ -18,4 +18,4 @@ export const RedirectSinglePageBuiltModule: SinglePageBuiltModule = { page: () => Promise.resolve(RedirectComponentInstance), middleware: StaticMiddlewareInstance, renderers: [], -} +};