diff options
| author | Geert-Jan Zwiers <geertjanzwiers@protonmail.com> | 2023-04-06 01:46:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-06 01:46:21 +0200 |
| commit | a7e25b812616e1a8a811de281ab73ff55586e4ca (patch) | |
| tree | dce27de90ed190a284c04b89dcfcfe2ba863defd /cli/tests/testdata/npm/registry | |
| parent | 36e8c8dfd759458aa735f79f5cc7cd346c727914 (diff) | |
fix(ext/node): json encode binary command name (#18596)
Fixes https://github.com/denoland/deno/issues/18588
Diffstat (limited to 'cli/tests/testdata/npm/registry')
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/special-chars-in-bin-name/1.0.0/main.mjs | 5 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/special-chars-in-bin-name/1.0.0/package.json | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/special-chars-in-bin-name/1.0.0/main.mjs b/cli/tests/testdata/npm/registry/@denotest/special-chars-in-bin-name/1.0.0/main.mjs new file mode 100644 index 000000000..0ae8e9190 --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/special-chars-in-bin-name/1.0.0/main.mjs @@ -0,0 +1,5 @@ +import process from "node:process"; + +for (const arg of process.argv.slice(2)) { + console.log(arg); +} diff --git a/cli/tests/testdata/npm/registry/@denotest/special-chars-in-bin-name/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/special-chars-in-bin-name/1.0.0/package.json new file mode 100644 index 000000000..2dce473b5 --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/special-chars-in-bin-name/1.0.0/package.json @@ -0,0 +1,10 @@ +{ + "name": "@denotest/special-chars-in-bin-name", + "version": "1.0.0", + "type": "module", + "main": "main.mjs", + "bin": { + "\\foo\"": "main.mjs" + } + } +
\ No newline at end of file |
