fix(npm): binary entrypoint for .js or no extension (#15900)

This commit is contained in:
Bartek Iwańczuk 2022-09-14 16:41:47 +02:00 committed by GitHub
parent 6a9acc8142
commit 7b98282993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 47 additions and 10 deletions

View file

@ -0,0 +1,5 @@
const process = require("process");
for (const arg of process.argv.slice(2)) {
console.log(arg);
}

View file

@ -0,0 +1,5 @@
const process = require("process");
for (const arg of process.argv.slice(2)) {
console.log(arg);
}

View file

@ -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"
}
}

View file

@ -1,5 +0,0 @@
{
"name": "@deno/esm-bin",
"version": "1.0.0",
"bin": "./cli.mjs"
}