You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ echo"const brokenOnPurpose: number = 'not a number';">> packages/blob/src/test/index.ts
$ npx tsc -b packages/blob --force;echo$?
0
packages/blob/src/test/index.ts(40,11): error TS2304: Cannot find name 'global'.
packages/blob/src/test/index.ts(82,31): error TS2339: Property 'toHaveStyle' does not exist on type 'JestMatchers<HTMLAnchorElement>'.
Stories are the inverse, type checked but shipped: the components tarball carries 248 story .d.ts files:
What problem does this address?
tsconfig.base.jsonexcludes**/test/**: 397 TS test files across 44 packages are never checked:Stories are the inverse, type checked but shipped: the
componentstarball carries 248 story.d.tsfiles:Jest types leak into 10+ src projects;
themecopes with five bespoke tsconfigs.What is your proposed solution?
Constraints:
build-typesor tarballs.lint:tsconfigenforced, per-package migration.Options:
tsconfig.jsonchecks everything; build uses src-onlytsconfig.build.json; package default configs hold dev files (jest types) and reference build configs.--noCheck.