chore: exclude stories from tsc type checking

Storybook CSF4 type inference generates massive .d.ts files for stories
(e.g. Card.stories.d.ts grew to 1.4MB by inlining all React HTML/ARIA
prop types). Excluding stories from tsc saves ~18s emit time, ~142MB
memory, and prevents unnecessary .d.ts bloat in dist-types.

No production code imports stories files, so this is safe.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
Fredrik Adelöw
2026-03-18 13:52:53 +01:00
parent 423d675d97
commit aeb53e18e5
+1
View File
@@ -8,6 +8,7 @@
"plugins/*/dev",
"plugins/*/migrations"
],
"exclude": ["**/*.stories.ts", "**/*.stories.tsx"],
"compilerOptions": {
"outDir": "dist-types",
"rootDir": ".",