Promote mailbox to top-level package for git installability - #10
Merged
Conversation
The package lived at packages/mailbox/ in a private-root monorepo. A git install (bun add github:...) gets the repository root, so the published package.json must be at the root for exports, files, and the prepare hook to resolve under a consumer's node_modules. - Move src/ to repo root; delete packages/ shell - Promote packages/mailbox/package.json to root (name, exports, files, deps, peerDependencies with @intx/* as peers — never vendored) - Add scripts/prepare.mjs: mirrors @corbits/react-ui — builds dist/ in a scratch dir when installed as a dependency (bun omits devDeps for git deps, and tsc cannot emit .d.ts inside a consumer node_modules tree) - Add root tsconfig.build.json (extends ./tsconfig.json, declaration emit) - Update README for the flat layout - examples/reference-host: file:../.. dep (bun workspaces cannot self-reference the root package by name)
Build before typecheck so @corbits/mailbox resolves through dist/, then force-reinstall to refresh the reference host's copied file: dependency — bun copies file: deps at install time, before dist/ exists. Point the remaining workflow and doc references at the repo root instead of the removed packages/mailbox directory.
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
Make
@corbits/mailboxinstallable as a top-level package from git (not only from a monorepo path).What changed
Test plan