1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/tests/specs/task/workspace/__test__.jsonc
Divy Srivastava a666c8c9f9
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>
2024-09-15 11:29:24 +05:30

52 lines
1.2 KiB
Text

{
"tests": {
"root": {
"args": "task",
"output": "root.out",
"exitCode": 0
},
"package_a": {
"args": "task",
"cwd": "package-a",
"output": "package-a.out",
"exitCode": 0
},
"package_b": {
"args": "task",
"cwd": "package-b",
"output": "package-b.out",
"exitCode": 0
},
"scripts": {
"args": "task",
"cwd": "scripts",
"output": "scripts.out",
"exitCode": 0
},
"package_b_tasks": {
"steps": [{
"args": "task --quiet pkg-json-root",
"cwd": "package-b",
// uses the workspace as cwd
"output": "pkg-json [WILDLINE]workspace\n"
}, {
"args": "task --quiet pkg-json-root-2",
"cwd": "package-b",
// uses package-b as cwd
"output": "override [WILDLINE]package-b\n"
}, {
"args": "task --quiet echo-package-b",
"cwd": "package-b",
"output": "hi [WILDLINE]package-b\n"
}, {
"args": "task --quiet echo-root",
"cwd": "package-b",
"output": "override root [WILDLINE]package-b\n"
}, {
"args": "task --quiet echo-root",
"cwd": "package-a",
"output": "[WILDLINE]workspace\n"
}]
}
}
}