Skip to content

Commit 24613c8

Browse files
committed
feat: use bun
1 parent 3b02952 commit 24613c8

File tree

7 files changed

+19
-4477
lines changed

7 files changed

+19
-4477
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
This is Turborepo starter with shadcn/ui pre-configured.
66

77
> [!NOTE]
8-
> This example uses `pnpm` as package manager.
8+
> This example uses `bun` as package manager.
99
10+
[pnpm version](https://github.com/dan5py/turborepo-shadcn-ui/tree/main)
1011
[npm version](https://github.com/dan5py/turborepo-shadcn-ui/tree/npm)
1112

1213
## Using this example
@@ -21,15 +22,15 @@ Install dependencies:
2122

2223
```sh
2324
cd turborepo-shadcn-ui
24-
pnpm install
25+
bun install
2526
```
2627

2728
### Add ui components
2829

2930
Use the pre-made script:
3031

3132
```sh
32-
pnpm ui add <component-name>
33+
bun ui add <component-name>
3334
```
3435

3536
> This works just like the `shadcn/ui` CLI.
@@ -39,19 +40,19 @@ pnpm ui add <component-name>
3940
Turborepo offer a simple command to add a new app:
4041

4142
```sh
42-
pnpm turbo gen workspace --name <app-name>
43+
bun turbo gen workspace --name <app-name>
4344
```
4445

4546
This will create a new empty app in the `apps` directory.
4647

4748
If you want, you can copy an existing app with:
4849

4950
```sh
50-
pnpm turbo gen workspace --name <app-name> --copy
51+
bun turbo gen workspace --name <app-name> --copy
5152
```
5253

5354
> [!NOTE]
54-
> Remember to run `pnpm install` after copying an app.
55+
> Remember to run `bun install` after copying an app.
5556
5657
## What's inside?
5758

@@ -80,7 +81,7 @@ To build all apps and packages, run the following command:
8081

8182
```sh
8283
cd turborepo-shadcn-ui
83-
pnpm build
84+
bun build
8485
```
8586

8687
### Develop
@@ -89,7 +90,7 @@ To develop all apps and packages, run the following command:
8990

9091
```sh
9192
cd turborepo-shadcn-ui
92-
pnpm dev
93+
bun dev
9394
```
9495

9596
### Remote Caching

apps/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
First, run the development server:
44

55
```bash
6-
pnpm dev
6+
bun dev
77
```
88

99
Open [http://localhost:3001](http://localhost:3001) with your browser to see the result.

bun.lockb

201 KB
Binary file not shown.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@
88
"dev": "turbo dev",
99
"lint": "turbo lint",
1010
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
11-
"ui": "pnpm --filter @repo/ui ui"
11+
"ui": "bun --filter @repo/ui ui"
1212
},
1313
"devDependencies": {
1414
"@repo/eslint-config": "workspace:*",
1515
"@repo/typescript-config": "workspace:*",
1616
"prettier": "^3.3.3",
1717
"turbo": "2.1.1"
1818
},
19-
"packageManager": "pnpm@8.9.0",
19+
"packageManager": "bun@1.1.27",
2020
"engines": {
2121
"node": ">=18"
22-
}
22+
},
23+
"workspaces": [
24+
"./apps/*",
25+
"./packages/*"
26+
]
2327
}

packages/ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"ui": "pnpm dlx shadcn@latest",
6+
"ui": "bunx shadcn@latest",
77
"lint": "eslint ."
88
},
99
"peerDependencies": {
@@ -21,7 +21,7 @@
2121
"typescript": "^5"
2222
},
2323
"dependencies": {
24-
"@radix-ui/react-slot": "^1.0.2",
24+
"@radix-ui/react-slot": "^1.1.0",
2525
"class-variance-authority": "^0.7.0",
2626
"clsx": "^2.1.1",
2727
"lucide-react": "^0.395.0",

0 commit comments

Comments
 (0)