mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-25 18:50:29 -06:00
Default type roots when host.directoryExists is not implemented should be node_modules/@types, not just node_modules
This commit is contained in:
parent
85a13b88ea
commit
2d60a20b6f
@ -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.
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user