1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/tests/specs/task/bin_package/__test__.jsonc
Nathan Whitaker 47d19461a5
fix(cli): Overwrite existing bin entries in node_modules (#24123)
Previously we warned on unix and didn't touch them on windows, now we
unconditionally overwrite them. This matches what npm does.
2024-06-06 21:21:25 +00:00

43 lines
1 KiB
Text

{
"tests": {
"sets_up_bin_dir": {
"tempDir": true,
"steps": [
// {"commandName": "npm", "args": "install", "output": "\nadded 1 package in [WILDCARD]\n"},
{
"args": "task sayhi",
"output": "task.out"
},
{
"if": "unix",
"commandName": "./node_modules/.bin/cli-esm",
"args": "hi hello",
"output": "hi\nhello\n"
},
{
"if": "windows",
"commandName": "./node_modules/.bin/cli-esm.cmd",
"args": "hi hello",
"output": "hi\nhello\n"
},
{
"commandName": "npm",
"args": "run sayhi",
"output": "npm-run.out"
}
]
},
"clobbers_if_already_setup": {
"tempDir": true,
"steps": [{
"commandName": "npm",
"args": "install",
"output": "\nadded 1 package in [WILDCARD]\n"
}, {
"if": "unix",
"args": "task sayhi",
"output": "task.out"
}]
}
}
}