Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
LATEST_PNPM=$(curl https://registry.npmjs.org/pnpm | jq '.["dist-tags"].latest + "+sha1." + .versions[.["dist-tags"].latest].dist.shasum')
LATEST_YARN=$(curl https://registry.npmjs.org/yarn | jq '.["dist-tags"].latest + "+sha1." + .versions[.["dist-tags"].latest].dist.shasum')
LATEST_BERRY=$(jq -n '$version + "+sha224." + $checksum' --arg version "$LATEST_BERRY_VERSION" --arg checksum "$(curl https://repo.yarnpkg.com/"$LATEST_BERRY_VERSION"/packages/yarnpkg-cli/bin/yarn.js | openssl dgst -sha224 | cut -d' ' -f2)")
LATEST_BUN=$(curl https://registry.npmjs.org/bun | jq '.["dist-tags"].latest + "+sha1." + .versions[.["dist-tags"].latest].dist.shasum')

git --no-pager show HEAD:config.json | jq '. * '"{
definitions: {
Expand All @@ -41,6 +42,9 @@ jobs:
default: $LATEST_BERRY,
},
},
bun: {
default: $LATEST_BUN,
}
},
}" > config.json

Expand Down
34 changes: 34 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,40 @@
}
}
}
},
"bun": {
"default": "1.0.0+sha1.318110dc2c46e1559fb5fef40884ebe77b711934",
"fetchLatestFrom": {
"type": "npm",
"package": "bun"
},
"transparent": {
"commands": [
[
"bun",
"init"
],
[
"bunx"
]
]
},
"ranges": {
"*": {
"url": "https://registry.npmjs.org/bun/-/bun-{}.tgz",
"bin": {
"bun": "./bin/bun",
"bunx": "./bin/bun"
},
"registry": {
"type": "npm",
"package": "bun"
},
"commands": {
"use": ["bun", "install"]
}
}
}
}
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@
"pnpm": "./dist/pnpm.js",
"pnpx": "./dist/pnpx.js",
"yarn": "./dist/yarn.js",
"yarnpkg": "./dist/yarnpkg.js"
"yarnpkg": "./dist/yarnpkg.js",
"bun": "./dist/bun",
"bunx": "./dist/bunx"
},
"executableFiles": [
"./dist/npm.js",
Expand All @@ -81,6 +83,7 @@
"./dist/yarn.js",
"./dist/yarnpkg.js",
"./dist/corepack.js",
"./dist/bun",
"./shims/npm",
"./shims/npm.ps1",
"./shims/npx",
Expand Down