tsconfig: Disable automatic inclusion of type packages.

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 <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-03-26 15:56:30 -07:00 committed by Tim Abbott
parent 1dd5392874
commit 58e9526586
1 changed files with 1 additions and 1 deletions

View File

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