D
Deno

help

how to exit all async command in deno task?

Rrudimediaz8/2/2023
consider this code
{
"tasks": {
"dev-server": "deno run --watch --allow-read --allow-net --allow-env dev.ts",
"dev-client": "deno run -A --unstable --node-modules-dir npm:vite",
"dev": "deno task dev-client & deno task dev-server"
}

}
{
"tasks": {
"dev-server": "deno run --watch --allow-read --allow-net --allow-env dev.ts",
"dev-client": "deno run -A --unstable --node-modules-dir npm:vite",
"dev": "deno task dev-client & deno task dev-server"
}

}
when i fire deno task dev it runs as expected. The problem is when i ctrl-c only one that get exited(dev-client). How to make both exit like behavior of npm-run-all -p dev:*

Looking for more? Join the community!