'deno run' for tasks question/Bug 🐞
Hi I am not sure if this is a bug, so I thought to ask here first.
So I understand Deno has both 'run' and 'task' sub command for running tasks.
However if there is a 'directory' and a task with same name, I find Deno conflicts and gives directory a precedence:
Example:
Imagine there is a 'test/' directory and a task named 'test'
If I do 'deno run test' Deno gives an error that 'test/' is a directory.
I personally think this is a bug as for actual files Deno requires extension but I would love to have some thoughts on this 😊
Thanks!
2 Replies
IMO deno run should not start tasks.
You should do
deno task test.
The run sub command running tasks was desired by some people who didn't want to write task for whatever reason, but I am not a fan of that approach and honestly just seems to complicate the run sub command more.