Skip to content

Commit fec6e80

Browse files
committed
chore(repo): restore the root typecheck script and extend it over stories
The root `typecheck` script (tsc against tsconfig.storybook.json) was lost in the reset to v1.4.8, leaving packages/*/stories with NO type checking at all — the per-package tsconfigs include only src/, Storybook transpiles without checking, and the vitest storybook project runs pre-built stories. A rename of any src symbol deep-imported by a story (e.g. devStageTimings' STAGE_MEASURE_PREFIX, consumed by the streaming profiler) would pass every gate and only surface as a silently-empty panel at runtime. Restored and extended: the new tsconfig.storybook.json covers .storybook/, packages/*/stories (which the pre-reset version never included), and packages/*/src/typings so the shim declarations (remark-pangu et al.) resolve for the transitively-checked src imports.
1 parent 5d03da0 commit fec6e80

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build": "pnpm --filter './packages/*' run build",
99
"lint": "eslint .",
1010
"lint:fix": "eslint . --fix",
11+
"typecheck": "tsc --noEmit -p tsconfig.storybook.json",
1112
"format": "prettier --write .",
1213
"format:check": "prettier --check .",
1314
"version-packages": "node scripts/version-packages.mjs",

tsconfig.storybook.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"include": [
4+
".storybook",
5+
"packages/*/stories",
6+
"packages/*/src/typings",
7+
"vitest.config.ts",
8+
"vitest.shims.d.ts"
9+
]
10+
}

0 commit comments

Comments
 (0)