Skip to content

Commit 97b42c9

Browse files
authored
Merge pull request #155 from ryoppippi/feature/fix-importing-tyipa-version-again
feat(cache.ts): import typia package.json with json type
2 parents 9ff6981 + d70e7b8 commit 97b42c9

File tree

1 file changed

+3
-1
lines changed
  • packages/unplugin-typia/src/core

1 file changed

+3
-1
lines changed

packages/unplugin-typia/src/core/cache.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import { createHash } from 'node:crypto';
33
import { tmpdir } from 'node:os';
44
import process from 'node:process';
55
import { basename, dirname, join } from 'pathe';
6-
import { version as typiaVersion } from 'typia/package.json';
6+
import typiaPackageJson from 'typia/package.json' with {type: 'json'};
77
import type { CacheKey, CachePath, Data, FilePath, ID, Source } from './types.js';
88
import { wrap } from './types.js';
99
import type { ResolvedOptions } from './options.js';
1010
import { isBun } from './utils.js';
1111

12+
const { version: typiaVersion } = typiaPackageJson;
13+
1214
type ResolvedCacheOptions = ResolvedOptions['cache'];
1315

1416
/**

0 commit comments

Comments
 (0)