mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 10:58:20 -05:00
Merge pull request #10689 from Microsoft/node_modules_at_types
Default type roots when host.directoryExists is not implemented shoul…
This commit is contained in:
@@ -188,7 +188,7 @@ namespace ts {
|
||||
*/
|
||||
function getDefaultTypeRoots(currentDirectory: string, host: ModuleResolutionHost): string[] | undefined {
|
||||
if (!host.directoryExists) {
|
||||
return [combinePaths(currentDirectory, "node_modules")];
|
||||
return [combinePaths(currentDirectory, nodeModulesAtTypes)];
|
||||
// And if it doesn't exist, tough.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user