Repository navigation
refactor!: replace generated exports with a hand-written barrel - #76
Merged
TheGreatAxios merged 1 commit intoSep 27, 2026
Conversation
This was referenced Sep 26, 2026
TheGreatAxios
force-pushed
the
cl-9367-replace-generated-react-ui-exports-with-a-hand-written
branch
from
September 26, 2026 03:07
7a8e385 to
c41d90d
Compare
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
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.
Closes CL-9367
Deletes
scripts/generate-exports.mjsand thegeneratebuild step.src/index.tsis now hand-written and re-exports the same modules as before.Breaking: per-module subpaths (
@corbits/react-ui/ui/buttonand the rest) are removed. Migrate withimport { Button } from "@corbits/react-ui".exportsis now., the six optional-peer modules (ui/dialog,ui/command-palette,ui/mic-permission-dialog,ui/menu,ui/tooltip,ui/toast),styles.css,theme.cssandpackage.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 throughui/dialog. Internal modules stay unexported.sideEffectsis still CSS-only.Adds
e2e/exports.test.ts, which checks after a build that everyexportstarget 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,lintandbun test(272 pass) all pass.Stacked on #61.