File tree Expand file tree Collapse file tree 2 files changed +5
-18
lines changed
packages/thirdweb/src/cli Expand file tree Collapse file tree 2 files changed +5
-18
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ remove bun options from CLI to increase stability
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
-
3
- import { execSync } from "node:child_process" ;
4
2
import { spawn } from "cross-spawn" ;
5
3
import {
6
4
generate ,
@@ -44,25 +42,9 @@ async function main() {
44
42
45
43
const isWindows = / ^ w i n / . test ( process . platform ) ;
46
44
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
-
60
45
let runner = "npx" ;
61
46
62
47
switch ( true ) {
63
- case isBunAvailable :
64
- runner = "bunx" ;
65
- break ;
66
48
case isWindows :
67
49
runner = "npx.cmd" ;
68
50
break ;
You can’t perform that action at this time.
0 commit comments