Skip to content

Commit

Permalink
feat(cache.ts): import typia package.json with json type
Browse files Browse the repository at this point in the history
The import statement for typia's package.json has been updated to use
the json type. This change ensures that the version of typia is
correctly extracted and used within the cache.ts file.
  • Loading branch information
ryoppippi committed Jun 28, 2024
1 parent 9ff6981 commit d70e7b8
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 d70e7b8

Please sign in to comment.