diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-10-18 08:23:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 14:23:53 +0200 |
commit | 6fbd95630a7cf04de5e1179b3d41f8f769fa897c (patch) | |
tree | 7503bc27f2394dd91ae6fc1936afd7657231cdc2 /runtime/js/99_main.js | |
parent | b2d0f6e913e8bbae3fda9d326498a439b981b317 (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/js/99_main.js')
0 files changed, 0 insertions, 0 deletions