Fixed diagnostic message wording

This commit is contained in:
Bill Ticehurst 2016-05-23 17:06:48 -07:00
parent c76dc72b40
commit ac541948c9
2 changed files with 2 additions and 2 deletions

View file

@ -2756,7 +2756,7 @@
"category": "Message",
"code": 6131
},
"No types specified in 'package.json' and is 'allowJs' set. Returning package 'main' value of '{0}' for module": {
"No types specified in 'package.json' but 'allowJs' is set, so returning 'main' value of '{0}'": {
"category": "Message",
"code": 6132
},

View file

@ -180,7 +180,7 @@ namespace ts {
// Use the main module for inferring types if no types package specified and the allowJs is set
if (state.compilerOptions.allowJs && jsonContent.main && typeof jsonContent.main === "string") {
if (state.traceEnabled) {
trace(state.host, Diagnostics.No_types_specified_in_package_json_and_is_allowJs_set_Returning_package_main_value_of_0_for_module, jsonContent.main);
trace(state.host, Diagnostics.No_types_specified_in_package_json_but_allowJs_is_set_so_returning_main_value_of_0, jsonContent.main);
}
const mainFilePath = normalizePath(combinePaths(baseDirectory, jsonContent.main));
return mainFilePath;