Skip to content

fix(dev): build runtime-host in the desktop library graph - #2570

Merged
jackwener merged 1 commit into
mainfrom
fix/dev-build-runtime-host
Aug 9, 2026
Merged

jackwener merged 1 commit into
mainfrom
fix/dev-build-runtime-host

Conversation

@jackwener

Copy link
Copy Markdown
Member

Summary

npm run dev only runs tsc --build tsconfig.lib.json. After the Runtime Host cutover, desktop main imports @maka/runtime-host/protocol at runtime (esbuild leaves packages external), but that package was missing from the lib graph.

Stale/missing packages/runtime-host/dist then crashes Electron on load with errors such as:

SyntaxError: The requested module '@maka/runtime-host/protocol' does not provide an export named 'decodeExternalSessionCatalogQueryInput'

Add packages/runtime-host to tsconfig.lib.json so dev always rebuilds it.

Verification

  • npm run dev reaches [startup] app ready after the change
  • Named export resolves: import { decodeExternalSessionCatalogQueryInput } from '@maka/runtime-host/protocol'

npm run dev only tsc --build tsconfig.lib.json. After the Runtime Host
cutover, desktop main imports @maka/runtime-host/protocol at runtime, but
that package was missing from the lib graph — stale dist then crashed
Electron with missing named exports such as
decodeExternalSessionCatalogQueryInput.
@jackwener
jackwener merged commit 46275d7 into main Aug 9, 2026
11 checks passed
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