From 0e478dab861a39a26ea55abd99f1be7f3b073623 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Fri, 5 Mar 2021 00:37:35 +0100 Subject: [PATCH] Fix compilation with ts-node ts-node by default does not respect the `files` setting in `tsconfig.json` and therefore does not respect the d.ts file under `types/`. This commit adds an explicit `typeRoots` option, as recommended by https://github.com/TypeStrong/ts-node#help-my-types-are-missing Fixes #989 Signed-off-by: Philip Molares --- tsconfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index bf10a2398..49abe30bc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,10 @@ "sourceMap": true, "outDir": "./dist", "baseUrl": "./", - "incremental": true + "incremental": true, + "typeRoots": [ + "./types", + "./node_modules/@types" + ] } }