From 0684d33496efc2747ac7500e89dff858779a6bf2 Mon Sep 17 00:00:00 2001 From: Retsam Date: Mon, 20 Mar 2023 11:47:31 -0400 Subject: [PATCH] Specify "types" in tsconfig.json By default TS will pull in any global modifying types that it finds - by specifying a types field it'll only pull in specific ones - which is usually a very small list of packages. This fixes a current issue where @types/estree conflicts with @types/eslint causes `npm run build` to fail. But neither set of typings is needed so specifying "types" avoids the issue. --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index cbdb1382..47542a6d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "target": "es2019", "module": "es2020", "lib": ["es2020", "DOM", "DOM.Iterable"], + "types": ["mocha"], "declaration": true, "declarationMap": true, "sourceMap": true,