Skip to content

Commit

Permalink
chore: tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 20, 2024
1 parent 122b2aa commit cf95c7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Check failure on line 9 in src/utils/collection.ts

View workflow job for this annotation

GitHub Actions / ubuntu

`../types` type import should occur before import of `./source`

const JSON_FIELDS_TYPES = ['ZodObject', 'ZodArray', 'ZodRecord', 'ZodIntersection', 'ZodUnion', 'ZodAny']

Expand Down
2 changes: 1 addition & 1 deletion src/utils/content/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export async function createParser(collection: ResolvedCollection, nuxt?: Nuxt)
},
}

return async function parse(file: ContentFile): Promise<ParsedContentFile> {
return async function parse(file: ContentFile) {
if (file.path && !file.dirname) {
file.dirname = dirname(file.path)
}
Expand Down

0 comments on commit cf95c7d

Please sign in to comment.