From d05e38520bffe45a149675c5aac4aa95386d29dc Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Thu, 29 Jun 2023 11:21:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(react)=20avoid=20storybook=20error?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since our upgrade from Typescript 5.0.4 to 5.1.3 some errors started to occur when running yarn build in .stories.tsx files. Please see the related issue: https://github.com/storybookjs/storybook/issues/23249. Adding this ignore clause partitions the storybook compilation and the package compilation which represents how things really work together, thus making the irrelevant errors to be removed. Fixes #109 --- packages/react/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/tsconfig.json b/packages/react/tsconfig.json index e63be58..3bf4baa 100644 --- a/packages/react/tsconfig.json +++ b/packages/react/tsconfig.json @@ -8,6 +8,6 @@ "types": ["vitest/globals", "vite/client"] }, "include": ["src", "cunningham.ts"], - "exclude": ["node_modules","dist", "**/tokens.ts"], + "exclude": ["node_modules","dist", "**/tokens.ts", "**/*.stories.tsx"], "references": [{ "path": "./tsconfig.node.json" }] }