Skip to content

Commit

Permalink
fix: change the check path
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
ChenPt and coderabbitai[bot] authored Apr 19, 2024
1 parent 66b802c commit 59ddfb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export function loadTsConfig(tsconfigPath: string): ts.CompilerOptions {
const isExtendFromNodeModules = !extendPattern.startsWith('.') && !extendPattern.startsWith('/');
if (isExtendFromNodeModules) {
const DEFAULT_TS_CONFIG_FILE_NAME = 'tsconfig.json';
const extendTsConfigPath = !path.extname(tsconfigPath) ? DEFAULT_TS_CONFIG_FILE_NAME : '';
const extendTsConfigPath = !path.extname(extendPattern) ? DEFAULT_TS_CONFIG_FILE_NAME : '';
maybeRealExtendPath.push(
path.resolve(tsconfigDirName, 'node_modules', extendPattern, extendTsConfigPath),
path.resolve(process.cwd(), 'node_modules', extendPattern, extendTsConfigPath),
Expand Down

0 comments on commit 59ddfb6

Please sign in to comment.