summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/registry/@denotest/bin
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/npm/registry/@denotest/bin')
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli-cjs.js5
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli-no-ext5
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli.mjs5
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/package.json9
4 files changed, 24 insertions, 0 deletions
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);
+}
diff --git a/cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli-no-ext b/cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli-no-ext
new file mode 100644
index 000000000..7b6ba2724
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@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/cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli.mjs b/cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/cli.mjs
new file mode 100644
index 000000000..0ae8e9190
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@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/cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/package.json
new file mode 100644
index 000000000..78a1abff2
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/bin/1.0.0/package.json
@@ -0,0 +1,9 @@
+{
+ "name": "@deno/bin",
+ "version": "1.0.0",
+ "bin": {
+ "cli-esm": "./cli.mjs",
+ "cli-no-ext": "./cli-no-ext",
+ "cli-cjs": "./cli-cjs.js"
+ }
+}