diff --git a/packages/unplugin-typia/src/core/cache.ts b/packages/unplugin-typia/src/core/cache.ts index 57298b7d..4e5b679e 100644 --- a/packages/unplugin-typia/src/core/cache.ts +++ b/packages/unplugin-typia/src/core/cache.ts @@ -3,12 +3,14 @@ import { createHash } from 'node:crypto'; import { tmpdir } from 'node:os'; import process from 'node:process'; import { basename, dirname, join } from 'pathe'; -import { version as typiaVersion } from 'typia/package.json'; +import typiaPackageJson from 'typia/package.json' with {type: 'json'}; import type { CacheKey, CachePath, Data, FilePath, ID, Source } from './types.js'; import { wrap } from './types.js'; import type { ResolvedOptions } from './options.js'; import { isBun } from './utils.js'; +const { version: typiaVersion } = typiaPackageJson; + type ResolvedCacheOptions = ResolvedOptions['cache']; /**