mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Adjust subModuleName
This commit is contained in:
1 parent
8398a87da7
commit
aa04ef5ce7
1 file changed
+4
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user