diff --git a/packages/astro/src/core/sync/index.ts b/packages/astro/src/core/sync/index.ts index e693ad3c4e15..8ef8670db39f 100644 --- a/packages/astro/src/core/sync/index.ts +++ b/packages/astro/src/core/sync/index.ts @@ -3,7 +3,9 @@ import { performance } from 'node:perf_hooks'; import { fileURLToPath } from 'node:url'; import { dim } from 'kleur/colors'; import { type HMRPayload, createServer } from 'vite'; +import type { Arguments } from 'yargs-parser'; import type { AstroConfig, AstroInlineConfig, AstroSettings } from '../../@types/astro.js'; +import { getPackage } from '../../cli/install-package.js'; import { createContentTypesGenerator } from '../../content/index.js'; import { globalContentConfigObserver } from '../../content/utils.js'; import { telemetry } from '../../events/index.js'; @@ -20,8 +22,6 @@ import { AstroError, AstroErrorData, createSafeError, isAstroError } from '../er import type { Logger } from '../logger/core.js'; import { formatErrorMessage } from '../messages.js'; import { ensureProcessNodeEnv } from '../util.js'; -import { getPackage } from '../../cli/install-package.js'; -import type { Arguments } from 'yargs-parser'; export type ProcessExit = 0 | 1; diff --git a/packages/db/src/core/cli/commands/execute/index.ts b/packages/db/src/core/cli/commands/execute/index.ts index 606245bbe9e6..a0a1b8e86176 100644 --- a/packages/db/src/core/cli/commands/execute/index.ts +++ b/packages/db/src/core/cli/commands/execute/index.ts @@ -1,11 +1,13 @@ import { existsSync } from 'node:fs'; +import { LibsqlError } from '@libsql/client'; import type { AstroConfig } from 'astro'; +import { green } from 'kleur/colors'; import type { Arguments } from 'yargs-parser'; import { - FILE_NOT_FOUND_ERROR, - MISSING_EXECUTE_PATH_ERROR, EXEC_DEFAULT_EXPORT_ERROR, EXEC_ERROR, + FILE_NOT_FOUND_ERROR, + MISSING_EXECUTE_PATH_ERROR, } from '../../../errors.js'; import { getLocalVirtualModContents, @@ -14,8 +16,6 @@ import { import { bundleFile, importBundledFile } from '../../../load-file.js'; import { getManagedAppTokenOrExit } from '../../../tokens.js'; import { type DBConfig } from '../../../types.js'; -import { LibsqlError } from '@libsql/client'; -import { green } from 'kleur/colors'; export async function cmd({ astroConfig, diff --git a/packages/db/src/core/integration/typegen.ts b/packages/db/src/core/integration/typegen.ts index 817cd79f899d..cc3664a6e939 100644 --- a/packages/db/src/core/integration/typegen.ts +++ b/packages/db/src/core/integration/typegen.ts @@ -1,9 +1,9 @@ import { existsSync } from 'node:fs'; import { mkdir, writeFile } from 'node:fs/promises'; -import { DB_TYPES_FILE, RUNTIME_IMPORT } from '../consts.js'; -import type { DBTable, DBTables } from '../types.js'; import type { AstroConfig } from 'astro'; +import { DB_TYPES_FILE, RUNTIME_IMPORT } from '../consts.js'; import { resolveDbConfig } from '../load-file.js'; +import type { DBTable, DBTables } from '../types.js'; // Exported for use in Astro core CLI export async function typegen(astroConfig: Pick) {