Adjust subModuleName

This commit is contained in:
Ron Buckton
2018-08-20 20:49:52 -07:00
parent 8398a87da7
commit aa04ef5ce7

View File

@@ -934,7 +934,7 @@ namespace ts {
if (endsWith(path, ".d.ts")) {
return path;
}
if (endsWith(path, "/index")) {
if (path === "index" || endsWith(path, "/index")) {
return path + ".d.ts";
}
return path + "/index.d.ts";
@@ -1069,9 +1069,9 @@ namespace ts {
}
}
// if (versionPath) {
// subModuleName = combinePaths(versionPath, subModuleName);
// }
if (versionPath) {
subModuleName = combinePaths(versionPath, subModuleName);
}
if (!endsWith(subModuleName, Extension.Dts)) {
subModuleName = addExtensionAndIndex(subModuleName);