Skip to content

Commit 539bdab

Browse files
committed
[Refactor] Remove unused Bun availability check in CLI bin file (#4040)
FIXES: #3991
1 parent 0e3cb13 commit 539bdab

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

.changeset/chilled-parents-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
remove bun options from CLI to increase stability

packages/thirdweb/src/cli/bin.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/usr/bin/env node
2-
3-
import { execSync } from "node:child_process";
42
import { spawn } from "cross-spawn";
53
import {
64
generate,
@@ -44,25 +42,9 @@ async function main() {
4442

4543
const isWindows = /^win/.test(process.platform);
4644

47-
const isBunAvailable = (() => {
48-
try {
49-
const res = execSync("bun --version", {
50-
// stdio: "ignore",
51-
encoding: "utf-8",
52-
});
53-
if (typeof res === "string" && res.indexOf(".") > -1) {
54-
return true;
55-
}
56-
} catch {}
57-
return false;
58-
})();
59-
6045
let runner = "npx";
6146

6247
switch (true) {
63-
case isBunAvailable:
64-
runner = "bunx";
65-
break;
6648
case isWindows:
6749
runner = "npx.cmd";
6850
break;

0 commit comments

Comments
 (0)