mirror of
https://github.com/withastro/astro.git
synced 2025-01-22 18:41:55 -05:00
Fix missing type import from auto format (#9250)
This commit is contained in:
parent
cfa0c454b5
commit
d8d46ed27e
16 changed files with 16 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
|||
"build:examples": "turbo run build --filter=\"@example/*\"",
|
||||
"dev": "turbo run dev --concurrency=40 --parallel --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
|
||||
"format": "pnpm run format:code",
|
||||
"format:ci": "pnpm run format:imports && pnpm run format:code",
|
||||
"format:ci": "pnpm run format:code",
|
||||
"format:code": "prettier -w \"**/*\" --ignore-unknown --cache",
|
||||
"format:imports": "organize-imports-cli ./packages/*/tsconfig.json ./packages/*/*/tsconfig.json",
|
||||
"test": "turbo run test --concurrency=1 --filter=astro --filter=create-astro --filter=\"@astrojs/*\"",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import MagicString from 'magic-string';
|
||||
import type * as vite from 'vite';
|
||||
import { normalizePath } from 'vite';
|
||||
import type { AstroPluginOptions, ImageTransform } from '../@types/astro.js';
|
||||
import { extendManualChunks } from '../core/build/plugins/util.js';
|
||||
|
|
|
@ -2,6 +2,7 @@ import { blue, bold, green } from 'kleur/colors';
|
|||
import fs from 'node:fs';
|
||||
import { performance } from 'node:perf_hooks';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import type * as vite from 'vite';
|
||||
import type {
|
||||
AstroConfig,
|
||||
AstroInlineConfig,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { green } from 'kleur/colors';
|
||||
import type * as vite from 'vite';
|
||||
import fs from 'node:fs';
|
||||
import type http from 'node:http';
|
||||
import type { AddressInfo } from 'node:net';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { EventEmitter } from 'node:events';
|
||||
import path from 'node:path';
|
||||
import type * as vite from 'vite';
|
||||
import type { ModuleLoader, ModuleLoaderEventEmitter } from './loader.js';
|
||||
|
||||
export function createViteLoader(viteServer: vite.ViteDevServer): ModuleLoader {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import type * as vite from 'vite';
|
||||
import type { AstroSettings } from '../@types/astro.js';
|
||||
|
||||
const virtualModuleId = 'astro:i18n';
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import type * as vite from 'vite';
|
||||
import type { AstroSettings } from '../@types/astro.js';
|
||||
|
||||
const virtualModuleId = 'astro:prefetch';
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import type * as vite from 'vite';
|
||||
import type { AstroSettings } from '../@types/astro.js';
|
||||
|
||||
const virtualModuleId = 'astro:transitions';
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import type * as vite from 'vite';
|
||||
import type { AstroSettings } from '../@types/astro.js';
|
||||
|
||||
import { bold } from 'kleur/colors';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import type fs from 'node:fs';
|
||||
import type * as vite from 'vite';
|
||||
import type { AstroSettings, ManifestData, SSRManifest } from '../@types/astro.js';
|
||||
import type { SSRManifestI18n } from '../core/app/types.js';
|
||||
import { patchOverlay } from '../core/errors/overlay.js';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import type { SourceDescription } from 'rollup';
|
||||
import type * as vite from 'vite';
|
||||
import type { AstroSettings } from '../@types/astro.js';
|
||||
import type { Logger } from '../core/logger/core.js';
|
||||
import type { PluginMetadata as AstroPluginMetadata } from './types.js';
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import type * as vite from 'vite';
|
||||
import type { AstroPluginOptions } from '../@types/astro.js';
|
||||
|
||||
const VIRTUAL_MODULE_ID = 'astro:dev-overlay';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import MagicString from 'magic-string';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import type * as vite from 'vite';
|
||||
import { loadEnv } from 'vite';
|
||||
import type { AstroConfig, AstroSettings } from '../@types/astro.js';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import type { ModuleInfo } from 'rollup';
|
||||
import type * as vite from 'vite';
|
||||
import type { SSRComponentMetadata, SSRResult } from '../@types/astro.js';
|
||||
import type { AstroBuildPlugin } from '../core/build/plugin.js';
|
||||
import type { PluginMetadata } from '../vite-plugin-astro/types.js';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import nodeFs from 'node:fs';
|
||||
import npath from 'node:path';
|
||||
import type * as vite from 'vite';
|
||||
import { slash } from '../core/path.js';
|
||||
import { cleanUrl } from '../vite-plugin-utils/index.js';
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import react, { type Options as ViteReactPluginOptions } from '@vitejs/plugin-react';
|
||||
import type { AstroIntegration } from 'astro';
|
||||
import { version as ReactVersion } from 'react-dom';
|
||||
import type * as vite from 'vite';
|
||||
|
||||
export type ReactIntegrationOptions = Pick<ViteReactPluginOptions, 'include' | 'exclude'> & {
|
||||
experimentalReactChildren?: boolean;
|
||||
|
|
Loading…
Reference in a new issue