Skip to content

Commit d60333f

Browse files
committed
chore: bun is required to setup the project
1 parent 2534d0c commit d60333f

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Installation
44

55
```
6-
yarn && yarn build
6+
npm install && npm run build
77
```
88

99
## Link package

bin/cb.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export const cbResultExpo = (
4646
shell.echo(chalk.greenBright(`Created ${nameOfApp} successfully.`));
4747

4848
shell.echo(
49-
chalk.greenBright(`Run cd ${nameOfApp} and yarn && yarn start.`),
49+
chalk.greenBright(
50+
`Run cd ${nameOfApp} and bun install && bun start.`,
51+
),
5052
);
5153

5254
spinner.stop();

bin/root.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dooboo",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"description": "Expo and expo router starter kit maintained by dooboolab.",
55
"bin": {
66
"dooboo": "lib/bin/root.js"

0 commit comments

Comments
 (0)