From 7b982829930bfcfbb70d0bb377f90939d122efed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 14 Sep 2022 16:41:47 +0200 Subject: fix(npm): binary entrypoint for .js or no extension (#15900) --- cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli-cjs.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli-cjs.js (limited to 'cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli-cjs.js') diff --git a/cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli-cjs.js b/cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli-cjs.js new file mode 100644 index 000000000..7b6ba2724 --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli-cjs.js @@ -0,0 +1,5 @@ +const process = require("process"); + +for (const arg of process.argv.slice(2)) { + console.log(arg); +} -- cgit v1.2.3