We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2711303 commit 7378b8aCopy full SHA for 7378b8a
1 file changed
src/compiler/moduleNameResolver.ts
@@ -144,7 +144,7 @@ namespace ts {
144
}
145
146
let typeRoots: string[];
147
- forEachAncestorDirectory(currentDirectory, directory => {
+ forEachAncestorDirectory(ts.normalizePath(currentDirectory), directory => {
148
const atTypes = combinePaths(directory, nodeModulesAtTypes);
149
if (host.directoryExists(atTypes)) {
150
(typeRoots || (typeRoots = [])).push(atTypes);
@@ -1056,4 +1056,4 @@ namespace ts {
1056
directory = parentPath;
1057
1058
1059
-}
+}
0 commit comments