Necmttn | Craftgen.ai
Writing modules for multiple runtime ( Deno & browser ) + Monorepo setup?
little bit more context;
in craftgen, i built an event-driven architecture powered by state actors.
The same actors can run both in the browser & backend so I have 1:1 mapping of the actor.
8 replies
Writing modules for multiple runtime ( Deno & browser ) + Monorepo setup?
so what I'm thinking right now is;
try to publish my https://github.com/craftgen/craftgen/tree/main/apps/core
as JSR package.
and import in https://github.com/craftgen/craftgen/tree/main/apps/web
as an npm package.
instead of transpiling I'm doing right now;
https://github.com/craftgen/craftgen/blob/main/apps/web/next.config.js#L14
perhaps this will complicate the debugging on the front end side.
8 replies