@@ -178,10 +178,10 @@ program
178178 shell . exit ( 1 ) ;
179179 }
180180
181- if ( ! shell . which ( 'yarn ' ) ) {
181+ if ( ! shell . which ( 'bun ' ) ) {
182182 shell . echo (
183183 chalk . redBright (
184- 'Sorry, this script requires yarn to be installed.' ,
184+ 'Sorry, this script requires bun to be installed. Install bun with `npm install -g bun` .' ,
185185 ) ,
186186 ) ;
187187
@@ -230,10 +230,10 @@ program
230230 if ( ! exists ) {
231231 shell . echo ( chalk . cyanBright ( 'Installing dependencies...' ) ) ;
232232
233- shell . exec ( 'yarn ' , ( code ) => {
233+ shell . exec ( 'bun install ' , ( code ) => {
234234 if ( code === 0 ) {
235235 shell . echo ( chalk . cyanBright ( 'Running project...\n' ) ) ;
236- shell . exec ( 'yarn start' ) ;
236+ shell . exec ( 'bun start' ) ;
237237
238238 return ;
239239 }
@@ -245,13 +245,13 @@ program
245245 }
246246
247247 shell . echo ( chalk . cyanBright ( 'Running project...' ) ) ;
248- shell . exec ( 'yarn start' ) ;
248+ shell . exec ( 'bun start' ) ;
249249 } catch ( err ) {
250250 shell . echo ( chalk . red ( err ) ) ;
251251
252252 shell . echo (
253253 chalk . redBright (
254- 'Failed while installing dependencies. Please try again with yarn .' ,
254+ 'Failed while installing dependencies. Please try again after `bun install` .' ,
255255 ) ,
256256 ) ;
257257 } finally {
@@ -274,10 +274,10 @@ program
274274 if ( ! exists ) {
275275 shell . echo ( chalk . cyanBright ( 'Installing dependencies...' ) ) ;
276276
277- shell . exec ( 'yarn ' , ( code ) => {
277+ shell . exec ( 'bun ' , ( code ) => {
278278 if ( code === 0 ) {
279279 shell . echo ( chalk . cyanBright ( 'Running project...' ) ) ;
280- shell . exec ( 'yarn test' ) ;
280+ shell . exec ( 'bun run test' ) ;
281281 spinner . stop ( ) ;
282282
283283 // process.exit(0);
@@ -286,7 +286,7 @@ program
286286
287287 shell . echo (
288288 chalk . redBright (
289- 'Failed installing dependencies. Please try again with yarn .' ,
289+ 'Failed installing dependencies. Please try again after `bun install` .' ,
290290 ) ,
291291 ) ;
292292 } ) ;
@@ -295,7 +295,7 @@ program
295295 }
296296
297297 shell . echo ( chalk . cyanBright ( 'Testing project...' ) ) ;
298- shell . exec ( 'yarn test' ) ;
298+ shell . exec ( 'bun run test' ) ;
299299 spinner . stop ( ) ;
300300 // process.exit(0);
301301 } ) ;
0 commit comments