Skip to content

Commit

Permalink
fix: return default settings when no tsconfig found (#407)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Holthausen <[email protected]>
  • Loading branch information
2 people authored and kaisermann committed Sep 20, 2021
1 parent 67f96ad commit 473408b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export function loadTsconfig(
ts.findConfigFile(fileDirectory, ts.sys.fileExists);

if (!tsconfigFile) {
return { errors: [], options: {} };
return { errors: [], options: compilerOptionsJSON };
}

tsconfigFile = isAbsolute(tsconfigFile)
Expand Down

0 comments on commit 473408b

Please sign in to comment.