PR feedback

This commit is contained in:
Sheetal Nandi
2017-09-26 16:21:15 -07:00
parent 38f3a2b700
commit 68d360585a
20 changed files with 472 additions and 431 deletions
+1 -1
View File
@@ -1683,7 +1683,7 @@ namespace ts {
return undefined;
}
let extendedConfigPath = toPath(extendedConfig, basePath, getCanonicalFileName);
if (!host.fileExists(extendedConfigPath) && !endsWith(extendedConfigPath, ".json")) {
if (!host.fileExists(extendedConfigPath) && !endsWith(extendedConfigPath, Extension.Json)) {
extendedConfigPath = `${extendedConfigPath}.json` as Path;
if (!host.fileExists(extendedConfigPath)) {
errors.push(createDiagnostic(Diagnostics.File_0_does_not_exist, extendedConfig));