jh
jh6mo ago

Workspaces with deno deploy

I was playing with the new workspace feature in a repository with two apps (an oak api and a fresh app) and two libraries (lib-a, lib-b). Both apps depend on both libraries. It works fine in local development. But as is, I can't deploy these to deno deploy. I guess that's because the libraries are not automatically added into the code package to be deployed and cannot be resolved remotely. Error I am getting is: The deployment failed: Relative import path "@repo/lib-a" not prefixed with / or ./ or ../ and not in import map from "file:///src/main.ts". Is there a recommended approach to do this? Do I need to use something like rollup to bundle all dependencies and deploy that?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?