Referencing local monorepo packages in Edge Functions?

In a monorepo setup, how can I improve the developer experience for shared local packages in Edge Functions?

Currently, I'm facing two major friction points:

Fragile Imports: My deno.json requires long relative paths like "@my/pkg": "../../../../pkg/dist/index.js".

Manual DX: Any change to the shared package requires a manual rebuild AND a manual restart of supabase functions serve.

Is there a supported way to reference local packages more cleanly and get hot-reloading to work?

Current painful setup: https://github.com/amal-chandran/supabase-experiments/tree/experiment/functions-code-share
GitHub
This repository is to keep track of all the Supabase experiments. - GitHub - amal-chandran/supabase-experiments at experiment/functions-code-share
Was this page helpful?