fix: Extract emulator to @workos/emulate#171
Conversation
The emulator code lived in src/emulate/ alongside the CLI, making it impossible to use outside the CLI (e.g. from CI or as a standalone binary). Extracting it into its own package lets the emulator ship independently.
# Conflicts: # pnpm-lock.yaml # src/bin.ts
Greptile SummaryThis PR extracts the ~12k-line in-tree WorkOS emulator (
Confidence Score: 5/5Safe to merge — the change is a well-scoped extraction of the in-tree emulator into an external package with no functional regressions visible in the changed paths. Previously flagged issues (shutdown rejection, seed-not-found JSON mode) are both addressed in this version. The test rewrite correctly mocks the external package and handles signal-listener cleanup. The command-name swap in bin.ts is consistent with the new help-json registration. No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "style: Format emulate.ts" | Re-trigger Greptile |
Summary
src/emulate/, ~12k lines) with the standalone@workos/emulatepackage, so the emulator can ship and version independently of the CLIworkos emulatefrom hidden beta to a visible command with-p/-s/-iflags and help-json registrationhono/@hono/node-serverdirect dependencies (now transitive through the package)gen-routes,check-coverage) that only served the in-tree emulatoremulate.spec.tsto mock@workos/emulateinstead of standing up a real server