diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-05-24 00:43:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-23 23:43:38 +0000 |
| commit | 92a8d09e498712aec2ba0e54a1ad85194ebd83af (patch) | |
| tree | d26e89bb46850665b2ed357a11718d8148850880 /tests/specs/task/bin_package/__test__.jsonc | |
| parent | 959739f609dddacde3bbe9ecede2f409214fb34c (diff) | |
fix(npm): set up node_modules/.bin/ entries for package that provide bin entrypoints (#23496)
Closes https://github.com/denoland/deno/issues/23036
---------
Co-authored-by: Nathan Whitaker <nathan@deno.com>
Diffstat (limited to 'tests/specs/task/bin_package/__test__.jsonc')
| -rw-r--r-- | tests/specs/task/bin_package/__test__.jsonc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/specs/task/bin_package/__test__.jsonc b/tests/specs/task/bin_package/__test__.jsonc new file mode 100644 index 000000000..19bad633e --- /dev/null +++ b/tests/specs/task/bin_package/__test__.jsonc @@ -0,0 +1,44 @@ +{ + "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" + } + ] + }, + "warns_if_already_setup": { + "tempDir": true, + "steps": [{ + "if": "unix", + "commandName": "npm", + "args": "install", + "output": "\nadded 1 package in [WILDCARD]\n" + }, { + "if": "unix", + "args": "task sayhi", + "output": "already-set-up.out" + }] + } + } +} |
