chore(deadcode): purge dead exports and guard the count - #1034
Merged
TheGreatAxios merged 3 commits intoSep 15, 2026
Merged
TheGreatAxios merged 3 commits into
TheGreatAxios merged 3 commits into
Conversation
Triage the ts-prune report; allowlist deliberate-public-surface exports with reasons. Delete consumer-less exports including fully-dead barrel files. Wire the dead-export check into the package check script and CI so the count cannot silently regrow.
TheGreatAxios
force-pushed
the
cl-6797-dead-export-purge-ts-prune-flags-870-candidates-verify
branch
from
September 14, 2026 18:05
9dd94de to
bc47a37
Compare
…#1046) * fix(deadcode): scope dead-export exemptions and warn on stale entries Whole-file exemptions hide new dead exports in the covered modules, so the guard can only see what it already knows. Exact-name entries keep the exemption set precise, and stale-entry warnings keep exemptions from outliving the code they cover. * test(deadcode): add keeper tests for the dead-export guard (#1061) * test(deadcode): add keeper tests for the dead-export guard * fix(deadcode): harden dead-export guard against silent weakening (#1065) * fix(deadcode): harden dead-export guard against silent weakening * fix(deadcode): pin guard scan invocation to exact args parseGuardConfig required only that tsPruneArgs contain the -p tsconfig pair, so narrowing flags like -i/--ignore shrank the scan while the tsc file-count floor stayed flat. Require exact ["-p", "<tsconfig>"] equality so the pin actually pins. Also reword ownership headers to match presence-only enforcement.
…urge-ts-prune-flags-870-candidates-verify # Conflicts: # src/tui/geometry/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
bun run checkpasses (lint, typecheck, build, guarded suite)Fixes CL-6797