Skip to content

Commit

Permalink
Update src/tsconfig-loader.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
  • Loading branch information
F3n67u and MichaelDeBoey committed Mar 30, 2022
1 parent 45640b8 commit 4d291ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/tsconfig-loader.ts
Expand Up @@ -96,11 +96,9 @@ export function walkForTsConfig(
existsSync: (path: string) => boolean = fs.existsSync
): string | undefined {
let configPath = path.join(directory, "./tsconfig.json");
if (existsSync(configPath)) {
return configPath;
if (!existsSync(configPath)) {
configPath = path.join(directory, "./jsconfig.json");
}

configPath = path.join(directory, "./jsconfig.json");
if (existsSync(configPath)) {
return configPath;
}
Expand Down

0 comments on commit 4d291ef

Please sign in to comment.