Skip to content

kumiko codegen

Terminal window
kumiko codegen [<path>]

Reads r.defineEvent / r.entity calls in the app and emits:

  • .kumiko/define.ts — the runtime registry the app’s bootstrap imports
  • types.generated.d.ts — the type maps your IDE picks up

Idempotent — re-running with no changes leaves files untouched. CI-safe for a “is the checkout in sync?” gate.

  • After adding/renaming an event or entity
  • After pulling changes from another dev that touched events/entities
  • As a postinstall hook (already wired — see package.json)
✓ codegen done — 41 events, 87ms
output: .kumiko/
types: rewritten
define: unchanged

unchanged means the file already matched what would be written — this is the “no work to do” exit, not an error.