Skip to content

Commit

Permalink
feat(tsfmt): support empty tsconfig.json that does not have files, in…
Browse files Browse the repository at this point in the history
…clude and exclude field
  • Loading branch information
vvakame committed Feb 5, 2017
1 parent f41d569 commit c741d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function readFilesFromTsconfig(configPath: string): string[] {
} else if (tsconfig.include || tsconfig.exclude) {
return tsMatchFiles(tsconfig.exclude || [], tsconfig.include || []);
} else {
throw new Error(`No "files" or "filesGlob" section present in tsconfig.json`);
return tsMatchFiles([], []);
}

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

0 comments on commit c741d83

Please sign in to comment.