Skip to content

fix(web): build with tsc --noEmit to stop emitting .d.ts files#24

Merged
msitarzewski merged 1 commit into
mainfrom
fix/web-build-no-emit
Jun 22, 2026
Merged

fix(web): build with tsc --noEmit to stop emitting .d.ts files#24
msitarzewski merged 1 commit into
mainfrom
fix/web-build-no-emit

Conversation

@msitarzewski

Copy link
Copy Markdown
Owner

tsc -b (build mode) emitted ~89 declaration files into web/src/ on every build despite the tsconfig's noEmit: true — a build-mode footgun. There are no project references here, so plain tsc --noEmit type-checks correctly while Vite handles bundling.

Verified: npm run build succeeds and emits zero .d.ts (only the one authored three-types.d.ts remains); no tsbuildinfo regenerated.

Note: local npm test shows 15 unrelated failures because this machine's web/node_modules is symlinked to a sibling duh-bot checkout whose install has a duplicate React (null-hooks). That's environmental and reproduces on main; CI (fresh install) is unaffected.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EkrekgzMAQko92UkjnXhHL

`tsc -b` (build mode) emitted declaration files into src/ despite the
tsconfig's `noEmit: true` (a build-mode footgun), polluting the tree with
~89 generated .d.ts on every build. There are no project references here,
so plain `tsc --noEmit` type-checks correctly and Vite handles bundling.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EkrekgzMAQko92UkjnXhHL
@msitarzewski msitarzewski merged commit 0360296 into main Jun 22, 2026
@msitarzewski msitarzewski deleted the fix/web-build-no-emit branch June 22, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant