Skip to content

Commit

Permalink
fix: support ts build with no tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisermann committed Apr 19, 2021
1 parent 519b0b6 commit cf0e44c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/transformers/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export function loadTsconfig(
tsOptions.tsconfigFile ||
ts.findConfigFile(fileDirectory, ts.sys.fileExists);

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

tsconfigFile = isAbsolute(tsconfigFile)
? tsconfigFile
: join(basePath, tsconfigFile);
Expand Down

0 comments on commit cf0e44c

Please sign in to comment.