Skip to content

Commit

Permalink
Merge pull request #155 from ryoppippi/feature/fix-importing-tyipa-ve…
Browse files Browse the repository at this point in the history
…rsion-again

feat(cache.ts): import typia package.json with json type
  • Loading branch information
ryoppippi authored Jun 28, 2024
2 parents 9ff6981 + d70e7b8 commit 97b42c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/unplugin-typia/src/core/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

/**
Expand Down

0 comments on commit 97b42c9

Please sign in to comment.