Skip to content

Commit e4d7dc4

Browse files
authored
Merge pull request #13461 from flekmatik/getDefaultTypeRoots-fix
Fixing default typeRoots on Windows
2 parents 1296f24 + f7b40ee commit e4d7dc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/moduleNameResolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ namespace ts {
135135
}
136136

137137
let typeRoots: string[];
138-
forEachAncestorDirectory(currentDirectory, directory => {
138+
forEachAncestorDirectory(ts.normalizePath(currentDirectory), directory => {
139139
const atTypes = combinePaths(directory, nodeModulesAtTypes);
140140
if (host.directoryExists(atTypes)) {
141141
(typeRoots || (typeRoots = [])).push(atTypes);
@@ -1060,4 +1060,4 @@ namespace ts {
10601060
directory = parentPath;
10611061
}
10621062
}
1063-
}
1063+
}

0 commit comments

Comments
 (0)