summaryrefslogtreecommitdiff
path: root/cli
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 /cli
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 'cli')
-rw-r--r--cli/Cargo.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index 0c4fcb6f7..c22de3dbd 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -57,7 +57,7 @@ deno_emit = "0.9.0"
deno_graph = "0.34.0"
deno_lint = { version = "0.33.0", features = ["docs"] }
deno_runtime = { version = "0.81.0", path = "../runtime" }
-deno_task_shell = "0.5.2"
+deno_task_shell = "0.6.0"
napi_sym = { path = "./napi_sym", version = "0.3.0" }
atty = "=0.2.14"