Skip to content

Commit

Permalink
Merge pull request #339 from hambergerpls/main
Browse files Browse the repository at this point in the history
fix(#338): basePath contains tsconfig.json
  • Loading branch information
ryoppippi authored Nov 1, 2024
2 parents 9877201 + cd3a964 commit 0c98ed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/unplugin-typia/src/core/typia.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Alias } from 'vite';
import ts from 'typescript';
import { resolve } from 'pathe';
import { dirname, resolve } from 'pathe';
import { resolveTSConfig } from 'pkg-types';
import { transform as typiaTransform } from 'typia/lib/transform.js';

Expand Down Expand Up @@ -74,7 +74,7 @@ async function getTsCompilerOption(cacheEnable = true, tsconfigId?: string): Pro
throw new Error(tsconfigParseResult.error.messageText.toString());
}

const tsconfig = ts.parseJsonConfigFileContent(tsconfigParseResult.config, ts.sys, id);
const tsconfig = ts.parseJsonConfigFileContent(tsconfigParseResult.config, ts.sys, dirname(id));

return tsconfig.options;
};
Expand Down

0 comments on commit 0c98ed7

Please sign in to comment.