diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4ac5fec..d623ebe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,7 +3,7 @@ ## Installation ``` -yarn && yarn build +npm install && npm run build ``` ## Link package diff --git a/bin/cb.ts b/bin/cb.ts index d4fa806..535aa79 100644 --- a/bin/cb.ts +++ b/bin/cb.ts @@ -46,7 +46,9 @@ export const cbResultExpo = ( shell.echo(chalk.greenBright(`Created ${nameOfApp} successfully.`)); shell.echo( - chalk.greenBright(`Run cd ${nameOfApp} and yarn && yarn start.`), + chalk.greenBright( + `Run cd ${nameOfApp} and bun install && bun start.`, + ), ); spinner.stop(); diff --git a/bin/root.ts b/bin/root.ts index b70b5d0..3672a93 100755 --- a/bin/root.ts +++ b/bin/root.ts @@ -178,10 +178,10 @@ program shell.exit(1); } - if (!shell.which('yarn')) { + if (!shell.which('bun')) { shell.echo( chalk.redBright( - 'Sorry, this script requires yarn to be installed.', + 'Sorry, this script requires bun to be installed. Install bun with `npm install -g bun`.', ), ); @@ -230,10 +230,10 @@ program if (!exists) { shell.echo(chalk.cyanBright('Installing dependencies...')); - shell.exec('yarn', (code) => { + shell.exec('bun install', (code) => { if (code === 0) { shell.echo(chalk.cyanBright('Running project...\n')); - shell.exec('yarn start'); + shell.exec('bun start'); return; } @@ -245,13 +245,13 @@ program } shell.echo(chalk.cyanBright('Running project...')); - shell.exec('yarn start'); + shell.exec('bun start'); } catch (err) { shell.echo(chalk.red(err)); shell.echo( chalk.redBright( - 'Failed while installing dependencies. Please try again with yarn.', + 'Failed while installing dependencies. Please try again after `bun install`.', ), ); } finally { @@ -274,10 +274,10 @@ program if (!exists) { shell.echo(chalk.cyanBright('Installing dependencies...')); - shell.exec('yarn', (code) => { + shell.exec('bun', (code) => { if (code === 0) { shell.echo(chalk.cyanBright('Running project...')); - shell.exec('yarn test'); + shell.exec('bun run test'); spinner.stop(); // process.exit(0); @@ -286,7 +286,7 @@ program shell.echo( chalk.redBright( - 'Failed installing dependencies. Please try again with yarn.', + 'Failed installing dependencies. Please try again after `bun install`.', ), ); }); @@ -295,7 +295,7 @@ program } shell.echo(chalk.cyanBright('Testing project...')); - shell.exec('yarn test'); + shell.exec('bun run test'); spinner.stop(); // process.exit(0); }); diff --git a/package.json b/package.json index 51c658d..48a2915 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dooboo", - "version": "0.1.8", + "version": "0.1.9", "description": "Expo and expo router starter kit maintained by dooboolab.", "bin": { "dooboo": "lib/bin/root.js"