1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

fix(cli): deno task exit with status 0 (#25637)

Fixes https://github.com/denoland/deno/issues/25632

Exit code 1 indiciates some sort of failure but `deno task` (without
arguments) is used to list available commands.

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
This commit is contained in:
Divy Srivastava 2024-09-15 11:29:24 +05:30 committed by GitHub
parent db6fc12b9e
commit a666c8c9f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 10 additions and 10 deletions

View file

@ -75,7 +75,7 @@ See https://docs.deno.com/go/config"#
&cli_options.start_dir,
&tasks_config,
)?;
return Ok(1);
return Ok(0);
}
};

View file

@ -4,5 +4,5 @@
"envs": {
"NO_COLOR": "1"
},
"exitCode": 1
"exitCode": 0
}

View file

@ -4,5 +4,5 @@
"envs": {
"NO_COLOR": "1"
},
"exitCode": 1
"exitCode": 0
}

View file

@ -2,5 +2,5 @@
"args": "task",
"envs": { "NO_COLOR": "1" },
"output": "task.out",
"exitCode": 1
"exitCode": 0
}

View file

@ -4,5 +4,5 @@
"envs": {
"NO_COLOR": "1"
},
"exitCode": 1
"exitCode": 0
}

View file

@ -4,5 +4,5 @@
"envs": {
"NO_COLOR": "1"
},
"exitCode": 1
"exitCode": 0
}

View file

@ -3,25 +3,25 @@
"root": {
"args": "task",
"output": "root.out",
"exitCode": 1
"exitCode": 0
},
"package_a": {
"args": "task",
"cwd": "package-a",
"output": "package-a.out",
"exitCode": 1
"exitCode": 0
},
"package_b": {
"args": "task",
"cwd": "package-b",
"output": "package-b.out",
"exitCode": 1
"exitCode": 0
},
"scripts": {
"args": "task",
"cwd": "scripts",
"output": "scripts.out",
"exitCode": 1
"exitCode": 0
},
"package_b_tasks": {
"steps": [{