diff --git a/packages/astro/src/content/types-generator.ts b/packages/astro/src/content/types-generator.ts index ae923dcdea..f0835c7775 100644 --- a/packages/astro/src/content/types-generator.ts +++ b/packages/astro/src/content/types-generator.ts @@ -1,9 +1,9 @@ -import glob from 'fast-glob'; -import { bold, cyan } from 'kleur/colors'; import type fsMod from 'node:fs'; import * as path from 'node:path'; import { fileURLToPath, pathToFileURL } from 'node:url'; -import { normalizePath, type ViteDevServer } from 'vite'; +import glob from 'fast-glob'; +import { bold, cyan } from 'kleur/colors'; +import { type ViteDevServer, normalizePath } from 'vite'; import { z } from 'zod'; import { zodToJsonSchema } from 'zod-to-json-schema'; import type { AstroSettings, ContentEntryType } from '../@types/astro.js'; @@ -13,6 +13,9 @@ import type { Logger } from '../core/logger/core.js'; import { isRelativePath } from '../core/path.js'; import { CONTENT_TYPES_FILE, VIRTUAL_MODULE_ID } from './consts.js'; import { + type ContentConfig, + type ContentObservable, + type ContentPaths, getContentEntryIdAndSlug, getContentPaths, getDataEntryExts, @@ -22,9 +25,6 @@ import { getEntrySlug, getEntryType, reloadContentConfigObserver, - type ContentConfig, - type ContentObservable, - type ContentPaths, } from './utils.js'; type ChokidarEvent = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';