diff --git a/packages/astro/src/cli/check/index.ts b/packages/astro/src/cli/check/index.ts index 3104cdca50..1634718c42 100644 --- a/packages/astro/src/cli/check/index.ts +++ b/packages/astro/src/cli/check/index.ts @@ -1,16 +1,16 @@ /* eslint-disable no-console */ import { AstroCheck, DiagnosticSeverity } from '@astrojs/language-server'; -import type { AstroSettings } from '../../@types/astro'; -import type { LogOptions } from '../../core/logger/core.js'; import glob from 'fast-glob'; import * as fs from 'fs'; import { bold, dim, red, yellow } from 'kleur/colors'; import { createRequire } from 'module'; import ora from 'ora'; import { fileURLToPath, pathToFileURL } from 'url'; -import { printDiagnostic } from './print.js'; import { Arguments } 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'; interface Result { errors: number; diff --git a/packages/astro/src/core/build/index.ts b/packages/astro/src/core/build/index.ts index 3d763d29ca..29dc835ff2 100644 --- a/packages/astro/src/core/build/index.ts +++ b/packages/astro/src/core/build/index.ts @@ -6,6 +6,7 @@ import fs from 'fs'; import * as colors from 'kleur/colors'; import { performance } from 'perf_hooks'; import * as vite from 'vite'; +import yargs from 'yargs-parser'; import { runHookBuildDone, runHookBuildStart, @@ -14,6 +15,7 @@ import { } from '../../integrations/index.js'; import { createVite } from '../create-vite.js'; import { debug, info, levels, timerMessage } from '../logger/core.js'; +import { printHelp } from '../messages.js'; import { apply as applyPolyfill } from '../polyfill.js'; import { RouteCache } from '../render/route-cache.js'; import { createRouteManifest } from '../routing/index.js'; @@ -21,8 +23,6 @@ import { collectPagesData } from './page-data.js'; import { staticBuild, viteBuild } from './static-build.js'; import { StaticBuildOptions } from './types.js'; import { getTimeStat } from './util.js'; -import { printHelp } from '../messages.js'; -import yargs from 'yargs-parser'; export interface BuildOptions { mode?: RuntimeMode; diff --git a/packages/astro/src/core/dev/dev.ts b/packages/astro/src/core/dev/dev.ts index 32d5335ca2..b6f051e08e 100644 --- a/packages/astro/src/core/dev/dev.ts +++ b/packages/astro/src/core/dev/dev.ts @@ -1,5 +1,6 @@ import type { AstroTelemetry } from '@astrojs/telemetry'; import type http from 'http'; +import { cyan } from 'kleur/colors'; import type { AddressInfo } from 'net'; import { performance } from 'perf_hooks'; import * as vite from 'vite'; @@ -8,10 +9,9 @@ import type { AstroSettings } from '../../@types/astro'; import { attachContentServerListeners } from '../../content/index.js'; import { info, LogOptions, warn } from '../logger/core.js'; import * as msg from '../messages.js'; +import { printHelp } from '../messages.js'; import { startContainer } from './container.js'; import { createContainerWithAutomaticRestart } from './restart.js'; -import { printHelp } from '../messages.js'; -import { cyan } from 'kleur/colors'; export interface DevOptions { configFlag: string | undefined; diff --git a/packages/astro/src/core/preview/index.ts b/packages/astro/src/core/preview/index.ts index 18555e7e49..9dd5fcb38f 100644 --- a/packages/astro/src/core/preview/index.ts +++ b/packages/astro/src/core/preview/index.ts @@ -1,14 +1,14 @@ import type { AstroTelemetry } from '@astrojs/telemetry'; +import { cyan } from 'kleur/colors'; import { createRequire } from 'module'; import { pathToFileURL } from 'url'; +import type { Arguments } from 'yargs-parser'; import type { AstroSettings, PreviewModule, PreviewServer } from '../../@types/astro'; import { runHookConfigDone, runHookConfigSetup } from '../../integrations/index.js'; import type { LogOptions } from '../logger/core'; +import { printHelp } from '../messages.js'; import createStaticPreviewServer from './static-preview-server.js'; import { getResolvedHostForHttpServer } from './util.js'; -import type { Arguments } from 'yargs-parser'; -import { printHelp } from '../messages.js'; -import { cyan } from 'kleur/colors'; interface PreviewOptions { logging: LogOptions; diff --git a/packages/astro/src/core/sync/index.ts b/packages/astro/src/core/sync/index.ts index f52e4918e7..8806f236d6 100644 --- a/packages/astro/src/core/sync/index.ts +++ b/packages/astro/src/core/sync/index.ts @@ -2,6 +2,7 @@ import { dim } from 'kleur/colors'; import type fsMod from 'node:fs'; import { performance } from 'node:perf_hooks'; import { createServer } from 'vite'; +import { Arguments } from 'yargs-parser'; import type { AstroSettings } from '../../@types/astro'; import { createContentTypesGenerator } from '../../content/index.js'; import { globalContentConfigObserver } from '../../content/utils.js'; @@ -12,7 +13,6 @@ 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 { Arguments } from 'yargs-parser'; type ProcessExit = 0 | 1;