Workspace-aware path imports

Hi!

My use case: I want to import a package from a Deno workspace. It doesn't work:

  • Simply specifying path to the package root or its
    deno.jsonc
    doesn't work
  • Consequently, Deno isn't aware of package's
    exports
    and, more importantly,
    imports
I am using the same mental model that works with Cargo: just specify the path, and Cargo will resolve everything.

[dependencies]
some_package = { path = "../../workspace_a/packages/some_package" }


Cargo understands that this is a crate, and it is a part of a workspace, and Cargo will resolve this crate's dependencies and everything accordingly.

I would really like if it works in Deno the same way.

Or is there a way to achieve the same right now?
Was this page helpful?