Repository navigation
refactor(ui): hide 546 dead barrel exports (SC-27) - #10
Merged
Merged
Conversation
Comment out — not delete — the 160 fully-unused `export { ... }` statements
in src/index.ts (546 export names with zero importers across apps/scaffald,
apps/web, packages, and this package's own tests/stories). Star re-exports
(./tokens), mixed live/dead lines, and direct declarations are left untouched.
Reversible per the SC-27 ticket.
Verified: `tsc --noEmit` clean here and in @scf/core + scaffald-app; web
bundle compiles; dashboard renders with no page errors.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
SC-27 — hide dead exports from the
@scaffald/uibarrelComments out (does not delete) 160 fully-unused
export { ... }statements insrc/index.ts— 546 export names with zero importers acrossapps/scaffald,apps/web, all packages, and this package's own tests/stories.Scope / safety
export * from "./tokens"and direct declarations are untouched (can't split safely).scripts/audit/2026-06-23/hide-dead-ui-exports.mjs(in the consumer repo) using the TypeScript compiler API.Verification
tsc --noEmitclean here, and in@scf/core+scaffald-app(consumers).scripts/audit/2026-06-10/UI-KIT-INVENTORY.md+ a re-run confirming 0 re-exports of@scaffald/uianywhere (so the dead list is safe).🤖 Generated with Claude Code