rudimediaz
rudimediaz2y ago

how to exit all async command in deno task?

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:*
0 Replies
No replies yetBe the first to reply to this messageJoin