From 58e9526586ecc3253d6909a767cdc66771092918 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 26 Mar 2020 15:56:30 -0700 Subject: [PATCH] tsconfig: Disable automatic inclusion of type packages. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic inclusion is for files with global declarations, as opposed to files declared as modules. typeRoots already had the side effect of disabling the default automatic inclusion for node_modules. Since we also don’t need it for static/js/types, we may as well disable it completely. Signed-off-by: Anders Kaseorg --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 9744b46709..d7e4799d51 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "paths": { "*": ["static/js/types/*"], }, - "typeRoots": ["static/js/types"], + "types": [], /* Typescript 3.4 added the --incremental flag but its API is not * currently public so ts-loader cannot use it yet.