You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with workspaces, running deno task -r <task> will fuzzy match for the name of the task. This is unexpected and inconvenient when working with a common NodeJS script naming convention where we have a task named lint for linting once, and a task named lint:watch for lint & watching. Because of the fuzzy match, deno task -r lint would start watchers and not actually lint all sub-projects.
To reproduce, run the following:
cd /tmp && \
mkdir -p deno-workspace-repro/app1 && \
cd deno-workspace-repro/app1 && \
deno init && \
cd .. && \
echo'{ "workspace": ["./app1"] }'> deno.json
Now observe that running deno task -r d will start the dev task.
Version: Deno 2.1.4
The text was updated successfully, but these errors were encountered:
This commit fixes `deno task` by checking if the provided
task name actually has a wildcard char ("*").
Previously, if the "--recursive" flag was passed, the task name
was treated as a regex, which lead to a situation where exact task
name resulted in a regex that matched all tasks with the specific
prefix.
This commit fixes it, by checking if the provided task name, is an exact
name, or is it a wildcard match.
Closes#27370Closes#27401Closes#27408
When working with workspaces, running
deno task -r <task>
will fuzzy match for the name of the task. This is unexpected and inconvenient when working with a common NodeJS script naming convention where we have a task namedlint
for linting once, and a task namedlint:watch
for lint & watching. Because of the fuzzy match,deno task -r lint
would start watchers and not actually lint all sub-projects.To reproduce, run the following:
Now observe that running
deno task -r d
will start the dev task.Version: Deno 2.1.4
The text was updated successfully, but these errors were encountered: