diff --git a/src/utils/collection.ts b/src/utils/collection.ts index 63a322490..ad2211681 100644 --- a/src/utils/collection.ts +++ b/src/utils/collection.ts @@ -6,7 +6,7 @@ import { metaSchema, pageSchema } from './schema' import type { ZodFieldType } from './zod' import { getUnderlyingType, ZodToSqlFieldTypes, z, getUnderlyingTypeName } from './zod' import { logger } from './dev' -import type { ParsedContentFile } from '~/src/types' +import type { ParsedContentFile } from '../types' const JSON_FIELDS_TYPES = ['ZodObject', 'ZodArray', 'ZodRecord', 'ZodIntersection', 'ZodUnion', 'ZodAny'] diff --git a/src/utils/content/index.ts b/src/utils/content/index.ts index 48a9269f9..469e3b144 100644 --- a/src/utils/content/index.ts +++ b/src/utils/content/index.ts @@ -129,7 +129,7 @@ export async function createParser(collection: ResolvedCollection, nuxt?: Nuxt) }, } - return async function parse(file: ContentFile): Promise { + return async function parse(file: ContentFile) { if (file.path && !file.dirname) { file.dirname = dirname(file.path) }