Files
backstage/tsconfig.json
Fredrik Adelöw aeb53e18e5 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>
2026-03-18 13:52:53 +01:00

19 lines
419 B
JSON

{
"extends": "@backstage/cli/config/tsconfig.json",
"include": [
"packages/*/src",
"packages/*/config.d.ts",
"plugins/*/src",
"plugins/*/config.d.ts",
"plugins/*/dev",
"plugins/*/migrations"
],
"exclude": ["**/*.stories.ts", "**/*.stories.tsx"],
"compilerOptions": {
"outDir": "dist-types",
"rootDir": ".",
"useUnknownInCatchVariables": false,
"jsx": "react-jsx"
}
}