We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8398a87 commit aa04ef5Copy full SHA for aa04ef5
src/compiler/moduleNameResolver.ts
@@ -934,7 +934,7 @@ namespace ts {
934
if (endsWith(path, ".d.ts")) {
935
return path;
936
}
937
- if (endsWith(path, "/index")) {
+ if (path === "index" || endsWith(path, "/index")) {
938
return path + ".d.ts";
939
940
return path + "/index.d.ts";
@@ -1069,9 +1069,9 @@ namespace ts {
1069
1070
1071
1072
- // if (versionPath) {
1073
- // subModuleName = combinePaths(versionPath, subModuleName);
1074
- // }
+ if (versionPath) {
+ subModuleName = combinePaths(versionPath, subModuleName);
+ }
1075
1076
if (!endsWith(subModuleName, Extension.Dts)) {
1077
subModuleName = addExtensionAndIndex(subModuleName);
0 commit comments