PR Feedback

This commit is contained in:
Ron Buckton
2018-09-05 11:23:39 -07:00
parent 210de32933
commit e726e4cfec
2 changed files with 12 additions and 0 deletions

View File

@@ -165,6 +165,14 @@ namespace ts {
const typesVersions = readPackageJsonTypesVersionsField(jsonContent, state);
if (typesVersions === undefined) return;
if (state.traceEnabled) {
for (const key in typesVersions) {
if (hasProperty(typesVersions, key) && !VersionRange.tryParse(key)) {
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range, key);
}
}
}
const result = getPackageJsonTypesVersionsPaths(typesVersions);
if (!result) {
if (state.traceEnabled) {