From e3370d6b5bf88f7da9b3794ed1274652079cbcd2 Mon Sep 17 00:00:00 2001 From: Tom Jenkinson Date: Sat, 23 Nov 2019 16:31:51 +0000 Subject: [PATCH] disable typescript automatically bringing in @types packages see https://github.com/rollup/rollup/pull/3226#issuecomment-552580538 rollup brings in types for node, which are then automatically registered, and mean typecript won't error if you use an API that is only available in node --- generic-tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/generic-tsconfig.json b/generic-tsconfig.json index 29f70b7f..9ce8eeb6 100644 --- a/generic-tsconfig.json +++ b/generic-tsconfig.json @@ -7,6 +7,7 @@ "jsx": "react", "jsxFactory": "h", "strict": true, + "types": [], "moduleResolution": "node", "outDir": ".ts-tmp", "composite": true,