Skip to content

chore: one npm workspace for both brokers - #1

Merged
cycle-five merged 3 commits into
masterfrom
workspace-layout
Nov 19, 2026
Merged

cycle-five merged 3 commits into
masterfrom
workspace-layout

Conversation

@cycle-five

Copy link
Copy Markdown
Member

What this is

discord-broker and github-broker were imported into this repository with their history (see master). 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 a broker-core package 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

  • Root package.json with workspaces packages/* and brokers/*, one package-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's tsconfig.json extends it.
  • One .gitignore and one LICENSE at the root.
  • wrangler.example.jsonc: only the $schema path changes. There is still one wrangler config per broker, in the broker's directory.
  • CI: npm ci, typecheck, tests, on pull requests and master. Neither old repository had any.
  • Broker READMEs: setup commands updated for the new layout.
  • The design document and the implementation plan for both steps.

Checked

  • npm ci && npm run typecheck && npm test at the root: discord-broker 68 tests pass, github-broker 52 pass.
  • wrangler deploy --dry-run for 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

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)
@cycle-five
cycle-five merged commit 85c04f3 into master Nov 19, 2026
1 check passed
@cycle-five
cycle-five deleted the workspace-layout branch November 19, 2026 22:12
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