Skip to content

refactor(ui): hide 546 dead barrel exports (SC-27) - #10

Merged
thinkclay merged 1 commit into
mainfrom
sc27-hide-dead-exports
Jun 23, 2026
Merged

thinkclay merged 1 commit into
mainfrom
sc27-hide-dead-exports

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

SC-27 — hide dead exports from the @scaffald/ui barrel

Comments out (does not delete) 160 fully-unused export { ... } statements in src/index.ts — 546 export names with zero importers across apps/scaffald, apps/web, all packages, and this package's own tests/stories.

Scope / safety

  • Only statements where every exported name is unused are commented. Mixed live/dead lines (49) are left intact.
  • export * from "./tokens" and direct declarations are untouched (can't split safely).
  • Reversible per the ticket ("comment out / hide — do not delete").
  • Generated mechanically by scripts/audit/2026-06-23/hide-dead-ui-exports.mjs (in the consumer repo) using the TypeScript compiler API.

Verification

  • tsc --noEmit clean here, and in @scf/core + scaffald-app (consumers).
  • Expo web bundle compiles; dashboard renders with 0 page errors.
  • Audit basis: scripts/audit/2026-06-10/UI-KIT-INVENTORY.md + a re-run confirming 0 re-exports of @scaffald/ui anywhere (so the dead list is safe).

🤖 Generated with Claude Code

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]>
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