summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/registry/@denotest/esm-bin
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-08-26 09:17:48 -0400
committerGitHub <noreply@github.com>2022-08-26 09:17:48 -0400
commitf583a7ebf4f7c4ef21061fba802f80fd2d5299e7 (patch)
tree932cbbd35ee2787e62150238ab6aa391708a1086 /cli/tests/testdata/npm/registry/@denotest/esm-bin
parentf35900eb5b44869626e9e4f3fbc6d0fe268d2b56 (diff)
chore(npm): add test for esm npm binary package (#15609)
Diffstat (limited to 'cli/tests/testdata/npm/registry/@denotest/esm-bin')
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/esm-bin/1.0.0/cli.mjs5
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/esm-bin/1.0.0/package.json5
2 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/esm-bin/1.0.0/cli.mjs b/cli/tests/testdata/npm/registry/@denotest/esm-bin/1.0.0/cli.mjs
new file mode 100644
index 000000000..0ae8e9190
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/esm-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/esm-bin/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/esm-bin/1.0.0/package.json
new file mode 100644
index 000000000..ecd0d24a7
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/esm-bin/1.0.0/package.json
@@ -0,0 +1,5 @@
+{
+ "name": "@deno/esm-bin",
+ "version": "1.0.0",
+ "bin": "./cli.mjs"
+}