Skip to content

refactor!: replace generated exports with a hand-written barrel - #76

Merged
TheGreatAxios merged 1 commit into
cl-9074-react-ui-keep-one-package-manager-lockfilefrom
cl-9367-replace-generated-react-ui-exports-with-a-hand-written
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
cl-9074-react-ui-keep-one-package-manager-lockfilefrom
cl-9367-replace-generated-react-ui-exports-with-a-hand-written

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes CL-9367

Deletes scripts/generate-exports.mjs and the generate build step. src/index.ts is now hand-written and re-exports the same modules as before.

Breaking: per-module subpaths (@corbits/react-ui/ui/button and the rest) are removed. Migrate with import { Button } from "@corbits/react-ui".

exports is now ., the six optional-peer modules (ui/dialog, ui/command-palette, ui/mic-permission-dialog, ui/menu, ui/tooltip, ui/toast), styles.css, theme.css and package.json. Those six stay out of the barrel because each statically imports an optional peer (@radix-ui/react-dialog, @radix-ui/react-dropdown-menu, @radix-ui/react-tooltip, sonner), directly or through ui/dialog. Internal modules stay unexported. sideEffects is still CSS-only.

Adds e2e/exports.test.ts, which checks after a build that every exports target exists and that the root entry loads under Node with every optional peer blocked. The 0.2.0 changelog, README, ARCHITECTURE, IMPLEMENTATION, PRODUCT, CONTRIBUTING and the dep-guard messages are updated to match.

Checks: bun run build (includes contrast and dep-guard), typecheck, lint and bun test (272 pass) all pass.

Stacked on #61.

@TheGreatAxios
TheGreatAxios force-pushed the cl-9367-replace-generated-react-ui-exports-with-a-hand-written branch from 7a8e385 to c41d90d Compare September 26, 2026 03:07
@TheGreatAxios
TheGreatAxios changed the base branch from release-0.2.0 to cl-9074-react-ui-keep-one-package-manager-lockfile September 26, 2026 03:07
@TheGreatAxios
TheGreatAxios added this pull request to stack #74 September 26, 2026 03:12
@TheGreatAxios
TheGreatAxios merged commit 247ac6e into main Sep 27, 2026
1 check passed
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