Skip to content

Commit

Permalink
refactor(cache): remove redundant typia version import
Browse files Browse the repository at this point in the history
The code that imports the typia version from the package.json file was
removed. This change simplifies the code by eliminating unnecessary
imports and handling of the typia version. The typia version will now
be managed differently.
  • Loading branch information
ryoppippi committed Aug 17, 2024
1 parent 743a78d commit 137527a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/unplugin-typia/src/core/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ import { isBun } from './utils.js';

/** get typia version */
let typiaVersion: string | undefined;
try {
const { default: packageJson } = await import('typia/package.json');
typiaVersion = packageJson.version;
}
catch {}

try {
if (typiaVersion == null) {
Expand Down

0 comments on commit 137527a

Please sign in to comment.