Add bunx to bin for npm installer

This commit is contained in:
Ashcon Partovi
2023-01-24 12:04:27 -08:00
parent f43b675200
commit fb1902448e
2 changed files with 7 additions and 2 deletions

View File

@@ -16,7 +16,8 @@
"bugs": "https://github.com/oven-sh/issues",
"license": "MIT",
"bin": {
"bun": "bin/bun"
"bun": "bin/bun",
"bunx": "bin/bun"
},
"repository": "https://github.com/oven-sh/bun",
"scripts": {

View File

@@ -78,6 +78,7 @@ async function buildBasePackage() {
),
bin: {
bun: "bin/bun",
bunx: "bin/bun",
},
os,
cpu,
@@ -117,7 +118,10 @@ async function buildPackage(
}
function publishPackage(name: string, dryRun?: boolean): void {
const done = log(dryRun ? "Dry-run Publishing:" : "Publishing:", name);
const done = log(
dryRun ? "Dry-run Publishing:" : "Publishing:",
`${name}@${npmVersion}`,
);
const { exitCode, stdout, stderr } = spawn(
"npm",
[