Support for Deno workspaces
Is your feature request related to a problem? Please describe.
I want to use Deno workspaces with my edge functions. I tried adding the supabase/functions directory as a workspace member and adjusting the supabase/functions/deno.json by adding "name" and "exports" and moving some tasks and imports to the root deno.json as well as adding the supabase/functions/edge-function-name directory as a workspace member and adjusting the supabase/functions/edge-function-name/deno.json.
With these changes I see the following error when trying to invoke any edge function:
worker boot error: failed to create the graph: Relative import path "other_workspace_member_name/some_file.ts" not prefixed with / or ./ or ../
at file:///path/supabase/functions/edge-function-name/index.ts:6:32
Describe the solution you'd like
Support Deno workspaces (or if it is already supported, please document how it is supposed to be used).
Describe alternatives you've considered
For now I can "fake" it by adding the workspace members in the deno.json as imports such as:
{
"imports": {
...
"other_workspace_member_name/": "../path/to/workspace/member/",
...
}
}
I am not sure whether this is a bug, as Deno workspaces are an existing feature which is not working, or a feature request, if Deno workspaces is missing/not yet implemented for the Supabase edge runtime.
Additionally, I was not sure whether to open this issue here in the CLI repository or in the edge runtime repository. I decided for the CLI repository, as we use the edge runtime through the CLI.