Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Jun 20, 2023
1 parent e314a04 commit 3fd10f4
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/astro/src/core/build/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type { OutputAsset, OutputChunk } from 'rollup';
import { fileURLToPath } from 'url';
import type {
AstroConfig,
AstroMiddlewareInstance,
AstroSettings,
ComponentInstance,
EndpointHandler,
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/build/plugins/plugin-middleware.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Plugin as VitePlugin } from 'vite';
import { MIDDLEWARE_PATH_SEGMENT_NAME } from '../../constants.js';
import { addRollupInput } from '../add-rollup-input.js';
import type { BuildInternals } from '../internal.js';
import type { AstroBuildPlugin } from '../plugin';
import type { StaticBuildOptions } from '../types';
import { addRollupInput } from '../add-rollup-input.js';

export const MIDDLEWARE_MODULE_ID = '@astro-middleware';

Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/build/static-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { generatePages } from './generate.js';
import { trackPageData } from './internal.js';
import { createPluginContainer, type AstroBuildPluginContainer } from './plugin.js';
import { registerAllPlugins } from './plugins/index.js';
import { MIDDLEWARE_MODULE_ID } from './plugins/plugin-middleware.js';
import {
ASTRO_PAGE_EXTENSION_POST_PATTERN,
ASTRO_PAGE_RESOLVED_MODULE_ID,
Expand All @@ -32,7 +33,6 @@ import { RESOLVED_RENDERERS_MODULE_ID } from './plugins/plugin-renderers.js';
import { SSR_VIRTUAL_MODULE_ID } from './plugins/plugin-ssr.js';
import type { AllPagesData, PageBuildData, StaticBuildOptions } from './types';
import { getTimeStat } from './util.js';
import { MIDDLEWARE_MODULE_ID } from './plugins/plugin-middleware.js';

export async function viteBuild(opts: StaticBuildOptions) {
const { allPages, settings } = opts;
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/core/build/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { default as vite, InlineConfig } from 'vite';
import type {
AstroConfig,
AstroMiddlewareInstance,
AstroSettings,
BuildConfig,
ComponentInstance,
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/core/endpoint/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type {
APIContext,
AstroConfig,
AstroMiddlewareInstance,
EndpointHandler,
EndpointOutput,
MiddlewareEndpointHandler,
Expand Down
3 changes: 1 addition & 2 deletions packages/astro/src/core/redirects/component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { AstroMiddlewareInstance, ComponentInstance } from '../../@types/astro';
import type { ComponentInstance } from '../../@types/astro';
import type { SinglePageBuiltModule } from '../build/types';
import type { MiddlewareHandler } from '../../@types/astro';

// A stub of a component instance for a given route
export const RedirectComponentInstance: ComponentInstance = {
Expand Down

0 comments on commit 3fd10f4

Please sign in to comment.