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:
Andy
2016-09-06 06:42:48 -07:00
committed by GitHub

View File

@@ -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.
}