-
Notifications
You must be signed in to change notification settings - Fork 563
fix: bun detect #3791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: bun detect #3791
Conversation
🦋 Changeset detectedLatest commit: f77b221 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@keyding is attempting to deploy a commit to the thirdweb Team on Vercel. A member of the Team first needs to authorize it. |
Your org requires the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @keyding, mainly just one quick question
@@ -29,7 +29,7 @@ async function main() { | |||
const isBunAvailable = (() => { | |||
try { | |||
const res = execSync("bun --version", { | |||
stdio: "ignore", | |||
// stdio: "ignore", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this part of the fix or just left over?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is part of the fix, when stdio
is set to ignore
, res
is null
.
@@ -43,7 +43,7 @@ async function main() { | |||
|
|||
switch (true) { | |||
case isBunAvailable: | |||
runner = "bun"; | |||
runner = "bunx"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes sense
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
CodSpeed Performance ReportMerging #3791 will improve performances by 60.57%Comparing Summary
Benchmarks breakdown
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merge activity
|
Problem solved
Fix bun detection
Changes made
packages/thirdweb/src/cli/bin.ts
How to test
Contributor NFT
Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged.
Address: 0xC2745cd26F703C869a6d4797472f64a599C4ED65
PR-Codex overview
This PR focuses on fixing bun detection in the
bin.ts
file of thethirdweb
package.Detailed summary
runner
variable assignment from "bun" to "bunx" for bun detection.