Remove invalid trace

This commit is contained in:
Mohamed Hegazy
2016-12-21 16:40:30 -08:00
parent e096e308d6
commit 12e0275f1a
2 changed files with 2 additions and 8 deletions

View File

@@ -76,13 +76,7 @@ namespace ts {
return tryReadFromField("typings") || tryReadFromField("types");
case Extensions.JavaScript:
if (typeof jsonContent.main === "string") {
if (state.traceEnabled) {
trace(state.host, Diagnostics.No_types_specified_in_package_json_so_returning_main_value_of_0, jsonContent.main);
}
return normalizePath(combinePaths(baseDirectory, jsonContent.main));
}
return undefined;
return tryReadFromField("main");
}
function tryReadFromField(fieldName: string) {