DenoDDeno
Powered by
Lord SummerisleL
Denoβ€’3y ago
Lord Summerisle

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
deno task dev
it runs as expected. The problem is when i
ctrl-c
ctrl-c
only one that get exited(dev-client). How to make both exit like behavior of
npm-run-all -p dev:*
npm-run-all -p dev:*
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Command doesn't work in deno task but works outside of deno task
PixelPPixel / help
4y ago
RUN deno task in Dockerfile
vanpetVvanpet / help
3y ago
Deno.Command
TangJieHaoTTangJieHao / help
3y ago