Skip to content

Commit c741d83

Browse files
committed
feat(tsfmt): support empty tsconfig.json that does not have files, include and exclude field
1 parent f41d569 commit c741d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function readFilesFromTsconfig(configPath: string): string[] {
6161
} else if (tsconfig.include || tsconfig.exclude) {
6262
return tsMatchFiles(tsconfig.exclude || [], tsconfig.include || []);
6363
} else {
64-
throw new Error(`No "files" or "filesGlob" section present in tsconfig.json`);
64+
return tsMatchFiles([], []);
6565
}
6666

6767
function tsMatchFiles(excludes: string[], includes: string[]) {

0 commit comments

Comments
 (0)