Skip to content

Commit 4d3cdd1

Browse files
authored
docs: detect Bun package manager in create-vite (#14017)
1 parent cd6bf29 commit 4d3cdd1

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/guide/index.md

+7
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ $ yarn create vite
5959
$ pnpm create vite
6060
```
6161

62+
```bash [Bun]
63+
$ bunx create-vite
64+
```
65+
6266
:::
6367

6468
Then follow the prompts!
@@ -74,6 +78,9 @@ yarn create vite my-vue-app --template vue
7478

7579
# pnpm
7680
pnpm create vite my-vue-app --template vue
81+
82+
# bun
83+
bunx create-vite my-vue-app --template vue
7784
```
7885

7986
See [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite) for more details on each supported template: `vanilla`, `vanilla-ts`, `vue`, `vue-ts`, `react`, `react-ts`, `react-swc`, `react-swc-ts`, `preact`, `preact-ts`, `lit`, `lit-ts`, `svelte`, `svelte-ts`, `solid`, `solid-ts`, `qwik`, `qwik-ts`.

packages/create-vite/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ With PNPM:
2323
$ pnpm create vite
2424
```
2525

26+
With Bun:
27+
28+
```bash
29+
$ bunx create-vite
30+
```
31+
2632
Then follow the prompts!
2733

2834
You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + Vue project, run:
@@ -36,6 +42,9 @@ yarn create vite my-vue-app --template vue
3642

3743
# pnpm
3844
pnpm create vite my-vue-app --template vue
45+
46+
# Bun
47+
bunx create-vite my-vue-app --template vue
3948
```
4049

4150
Currently supported template presets include:

0 commit comments

Comments
 (0)