summaryrefslogtreecommitdiff
path: root/runtime/worker_bootstrap.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-10-18 08:23:53 -0400
committerGitHub <noreply@github.com>2022-10-18 14:23:53 +0200
commit6fbd95630a7cf04de5e1179b3d41f8f769fa897c (patch)
tree7503bc27f2394dd91ae6fc1936afd7657231cdc2 /runtime/worker_bootstrap.rs
parentb2d0f6e913e8bbae3fda9d326498a439b981b317 (diff)
feat(unstable/task): fail task on async command failure (#16301)
Tests and implementation are found here: https://github.com/denoland/deno_task_shell/pull/59 This is a breaking change, but `deno task` is unstable. > This changes async commands so that on non-zero exit code they will fail the entire task. For example: > > ```jsonc > // task that asynchronously starts a server and starts a watcher for the frontend > "dev": "deno task server & deno task frontend:watch" > ``` > > Previously when running `deno task dev`, if `deno task server` failed, the entire command would not fail, which kept in line with `sh`, but it's not very practical. This change causes `deno task dev` to fail. > > To opt out, developers can add an `|| exit 0`: > > ```jsonc > "dev": "deno task server || exit 0 & deno task frontend:watch" > ```
Diffstat (limited to 'runtime/worker_bootstrap.rs')
0 files changed, 0 insertions, 0 deletions