deno task from workspace
module is not resolving the module
#28372
Labels
task runner
related to deno task
workspace
module is not resolving the module
#28372
Hi,
I wanted to try out
deno
in our repo by first converting our tools to usedeno
.I've added a simple repro here:
deno-private-npm-repro.
I added a workspace with the tool:
Then I want to use this tool inside some of the
packages/*
e.g.ui
.I would expect
deno run @mynamespace/some-other-tool
(ordeno run jsr:@mynamespace/some-other-tool
) to resolve to modules where the tool resides.NOTE: Running the tool with a relative path works
deno run ./modules/some-other-tool/index.ts
, however, we need to set thecwd
from the package from which the tool is running when running withdeno task <>
from this package. Or, we would need a relative path from the package to the tool, which seems a bit cumbersome.deno 2.2.2 (stable, release, aarch64-apple-darwin)
v8 13.4.114.9-rusty
typescript 5.7.3
The text was updated successfully, but these errors were encountered: