diff --git a/packages/astro/src/cli/check/index.ts b/packages/astro/src/cli/check/index.ts index 531d4fb8bef4..de3257d16578 100644 --- a/packages/astro/src/cli/check/index.ts +++ b/packages/astro/src/cli/check/index.ts @@ -1,22 +1,20 @@ /* eslint-disable no-console */ import { AstroCheck, DiagnosticSeverity, GetDiagnosticsResult } from '@astrojs/language-server'; +import type { FSWatcher } from 'chokidar'; import glob from 'fast-glob'; -import * as fs from 'fs'; +import fsMod, * as fs from 'fs'; import { bold, dim, red, yellow } from 'kleur/colors'; import { createRequire } from 'module'; +import { join } from 'node:path'; import ora from 'ora'; import { fileURLToPath, pathToFileURL } from 'url'; -import { Arguments } from 'yargs-parser'; +import type { Arguments as Flags } from 'yargs-parser'; import type { AstroSettings } from '../../@types/astro'; import type { LogOptions } from '../../core/logger/core.js'; -import { printHelp } from '../../core/messages.js'; -import { printDiagnostic } from './print.js'; -import type { Arguments as Flags } from 'yargs-parser'; import { debug, info } from '../../core/logger/core.js'; +import { printHelp } from '../../core/messages.js'; import type { ProcessExit, SyncOptions } from '../../core/sync'; -import fsMod from 'fs'; -import type { FSWatcher } from 'chokidar'; -import { join } from 'node:path'; +import { printDiagnostic } from './print.js'; type DiagnosticResult = { errors: number; diff --git a/packages/astro/src/cli/index.ts b/packages/astro/src/cli/index.ts index 806393b47fc6..4d11ebc18ed3 100644 --- a/packages/astro/src/cli/index.ts +++ b/packages/astro/src/cli/index.ts @@ -18,7 +18,7 @@ import { enableVerboseLogging, nodeLogDestination } from '../core/logger/node.js import { formatConfigErrorMessage, formatErrorMessage, printHelp } from '../core/messages.js'; import * as event from '../events/index.js'; import { eventConfigError, eventError, telemetry } from '../events/index.js'; -import { check, CheckResult } from './check/index.js'; +import { check } from './check/index.js'; import { openInBrowser } from './open.js'; type Arguments = yargs.Arguments; diff --git a/packages/astro/src/core/sync/index.ts b/packages/astro/src/core/sync/index.ts index b4e0b3265581..914783331c5a 100644 --- a/packages/astro/src/core/sync/index.ts +++ b/packages/astro/src/core/sync/index.ts @@ -2,17 +2,17 @@ import { dim } from 'kleur/colors'; import type fsMod from 'node:fs'; import { performance } from 'node:perf_hooks'; import { createServer } from 'vite'; +import type { Arguments } from 'yargs-parser'; import type { AstroSettings } from '../../@types/astro'; import { createContentTypesGenerator } from '../../content/index.js'; import { globalContentConfigObserver } from '../../content/utils.js'; import { runHookConfigSetup } from '../../integrations/index.js'; import { setUpEnvTs } from '../../vite-plugin-inject-env-ts/index.js'; import { getTimeStat } from '../build/util.js'; +import { createVite } from '../create-vite.js'; import { AstroError, AstroErrorData } from '../errors/index.js'; import { info, LogOptions } from '../logger/core.js'; import { printHelp } from '../messages.js'; -import type { Arguments } from 'yargs-parser'; -import { createVite } from '../create-vite.js'; export type ProcessExit = 0 | 1;