From 2d60a20b6feb04b1ab08bea1632ed19aef6d0ab4 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Fri, 2 Sep 2016 13:29:51 -0700 Subject: [PATCH] Default type roots when host.directoryExists is not implemented should be node_modules/@types, not just node_modules --- src/compiler/program.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 6226d0d304b3b..9628ead772e8c 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -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. }