Unable to find local file with installed deno module
I am working on porting the 'octoherd/cli' to Deno. One of the things it does is load a script module to execute.
octoherd run -S script.js [...args]
octoherd run -S script.js [...args]
While working locally, the cli can find
script.js
script.js
, and everything works as expected. When I run deno install or compile, and try to run the CLI, I get the following error
deno run https://deno.land/x/octoherdcli@v0.2.13-alpha/octoherd.js run -S examples/script.tsordeno compile -A https://deno.land/x/octoherdcli@v0.2.13-alpha/octoherd.js./octoherd run -S examples/script.jsordeno install -A https://deno.land/x/octoherdcli@v0.2.13-alpha/octoherd.js../.deno/bin/octoherd run -S examples/script.js
deno run https://deno.land/x/octoherdcli@v0.2.13-alpha/octoherd.js run -S examples/script.tsordeno compile -A https://deno.land/x/octoherdcli@v0.2.13-alpha/octoherd.js./octoherd run -S examples/script.jsordeno install -A https://deno.land/x/octoherdcli@v0.2.13-alpha/octoherd.js../.deno/bin/octoherd run -S examples/script.js
Granted all read access. { path: "/Users/.../octoherd-cli-deno/examples/script.ts" } Granted all net access. error: Uncaught (in promise) Error: [octoherd] /Users/.../octoherd-cli-deno/examples/script.ts does not exist throw new Error(
[octoherd] ${path} does not exist
[octoherd] ${path} does not exist
);
----
I can 100% confirm the file exists. Here is what works in local development
deno run -A octoherd.js run -S examples/script.js'
deno run -A octoherd.js run -S examples/script.js'