Improve regex for tsconfig test

This commit is contained in:
Nathan Shively-Sanders 2017-10-27 14:34:40 -07:00
parent 3ac91d109b
commit d2771a8e76

View File

@ -262,7 +262,7 @@ namespace Playback {
};
function generateTsconfig(newLog: IOLog): undefined | { compilerOptions: ts.CompilerOptions, files: string[] } {
if (newLog.filesRead.some(file => /tsconfig.json$/.test(file.path))) {
if (newLog.filesRead.some(file => /tsconfig.+json$/.test(file.path))) {
return;
}
const files = [];