Repository navigation
chore: one npm workspace for both brokers - #1
Merged
Merged
Conversation
Co-Authored-By: Claude & Lothrop (cycle.five@proton.me)
Co-Authored-By: Claude & Lothrop (cycle.five@proton.me)
Co-Authored-By: Claude & Lothrop (cycle.five@proton.me)
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.
What this is
discord-brokerandgithub-brokerwere imported into this repository with their history (seemaster). This pull request turns the two standalone npm projects into one workspace. No source or test file changes.It is the first of two steps described in
docs/superpowers/specs/2026-11-19-brokers-monorepo-design.md; the second extracts the shared code into abroker-corepackage and ships as 0.3.0. Doing the layout on its own means a layout problem can never be confused with a code problem.Change
package.jsonwith workspacespackages/*andbrokers/*, onepackage-lock.json, dev dependencies hoisted to the root. The lock resolves the same versions the two old lockfiles did (wrangler 4.157.0, esbuild 0.28.2, typescript 5.9.3, vitest 3.2.7).tsconfig.base.json; each broker'stsconfig.jsonextends it..gitignoreand oneLICENSEat the root.wrangler.example.jsonc: only the$schemapath changes. There is still one wrangler config per broker, in the broker's directory.npm ci, typecheck, tests, on pull requests andmaster. Neither old repository had any.Checked
npm ci && npm run typecheck && npm testat the root: discord-broker 68 tests pass, github-broker 52 pass.wrangler deploy --dry-runfor each broker, compared with the bundle built from the old repository: no code line differs; one module-path comment differs per bundle.After merge
All four Workers are deployed from here unchanged, to prove the layout before any code moves. No version bump: nothing that ships changes.
🤖 Generated with Claude Code
https://claude.ai/code/session_017zqkE8grD6nh1bNnb2r1X8