diff options
Diffstat (limited to 'tests/registry/npm/@denotest/bin')
9 files changed, 48 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/bin/0.5.0/cli.mjs b/tests/registry/npm/@denotest/bin/0.5.0/cli.mjs new file mode 100644 index 000000000..0ae8e9190 --- /dev/null +++ b/tests/registry/npm/@denotest/bin/0.5.0/cli.mjs @@ -0,0 +1,5 @@ +import process from "node:process"; + +for (const arg of process.argv.slice(2)) { + console.log(arg); +} diff --git a/tests/registry/npm/@denotest/bin/0.5.0/package.json b/tests/registry/npm/@denotest/bin/0.5.0/package.json new file mode 100644 index 000000000..1b077a52e --- /dev/null +++ b/tests/registry/npm/@denotest/bin/0.5.0/package.json @@ -0,0 +1,5 @@ +{ + "name": "@denotest/bin", + "version": "0.5.0", + "bin": "./cli.mjs" +} diff --git a/tests/registry/npm/@denotest/bin/0.6.0/cli-cjs.js b/tests/registry/npm/@denotest/bin/0.6.0/cli-cjs.js new file mode 100644 index 000000000..7b6ba2724 --- /dev/null +++ b/tests/registry/npm/@denotest/bin/0.6.0/cli-cjs.js @@ -0,0 +1,5 @@ +const process = require("process"); + +for (const arg of process.argv.slice(2)) { + console.log(arg); +} diff --git a/tests/registry/npm/@denotest/bin/0.6.0/cli.mjs b/tests/registry/npm/@denotest/bin/0.6.0/cli.mjs new file mode 100644 index 000000000..0ae8e9190 --- /dev/null +++ b/tests/registry/npm/@denotest/bin/0.6.0/cli.mjs @@ -0,0 +1,5 @@ +import process from "node:process"; + +for (const arg of process.argv.slice(2)) { + console.log(arg); +} diff --git a/tests/registry/npm/@denotest/bin/0.6.0/package.json b/tests/registry/npm/@denotest/bin/0.6.0/package.json new file mode 100644 index 000000000..a9ff2d946 --- /dev/null +++ b/tests/registry/npm/@denotest/bin/0.6.0/package.json @@ -0,0 +1,4 @@ +{ + "name": "@denotest/bin", + "version": "0.6.0" +} diff --git a/tests/registry/npm/@denotest/bin/1.0.0/cli-cjs.js b/tests/registry/npm/@denotest/bin/1.0.0/cli-cjs.js new file mode 100644 index 000000000..7b6ba2724 --- /dev/null +++ b/tests/registry/npm/@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); +} diff --git a/tests/registry/npm/@denotest/bin/1.0.0/cli-no-ext b/tests/registry/npm/@denotest/bin/1.0.0/cli-no-ext new file mode 100644 index 000000000..7b6ba2724 --- /dev/null +++ b/tests/registry/npm/@denotest/bin/1.0.0/cli-no-ext @@ -0,0 +1,5 @@ +const process = require("process"); + +for (const arg of process.argv.slice(2)) { + console.log(arg); +} diff --git a/tests/registry/npm/@denotest/bin/1.0.0/cli.mjs b/tests/registry/npm/@denotest/bin/1.0.0/cli.mjs new file mode 100644 index 000000000..0ae8e9190 --- /dev/null +++ b/tests/registry/npm/@denotest/bin/1.0.0/cli.mjs @@ -0,0 +1,5 @@ +import process from "node:process"; + +for (const arg of process.argv.slice(2)) { + console.log(arg); +} diff --git a/tests/registry/npm/@denotest/bin/1.0.0/package.json b/tests/registry/npm/@denotest/bin/1.0.0/package.json new file mode 100644 index 000000000..27118c21a --- /dev/null +++ b/tests/registry/npm/@denotest/bin/1.0.0/package.json @@ -0,0 +1,9 @@ +{ + "name": "@denotest/bin", + "version": "1.0.0", + "bin": { + "cli-esm": "./cli.mjs", + "cli-no-ext": "./cli-no-ext", + "cli-cjs": "./cli-cjs.js" + } +} |