From c518a1e4b862923de0c56032efa30dfafe7081d7 Mon Sep 17 00:00:00 2001 From: Florian Sanders Date: Thu, 22 Feb 2024 18:25:39 +0100 Subject: [PATCH] chore(tsconfig-ci): include node library types only TypeScript always checks all types found in the `node_modules/@types` folder. It looks like with the new storybook version, some types in there are in conflict and contain mistakes (storybook & react dependencies). The common solution is to use `skipLibCheck: true` but this disables typechecking for all `d.ts` files, including ours. Fixes #972 --- tsconfig.ci.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tsconfig.ci.json b/tsconfig.ci.json index b365b3501..a299cb8fe 100644 --- a/tsconfig.ci.json +++ b/tsconfig.ci.json @@ -6,4 +6,11 @@ "src/lib/utils.js" ], "extends": "./tsconfig.json", + "compilerOptions": { + // FIXME: + // This means our `d.ts` files are not checked in CI context + // This needs to be set to `true` at least until we can upgrade TypeScript + // see https://github.com/CleverCloud/clever-components/issues/972 + "skipLibCheck": true, + } }