mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
Add bunx to bin for npm installer
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user