Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace bunx to bun x #4190

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/guides/ecosystem/vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ While Vite currently works with Bun, it has not been heavily optimized, nor has
Vite works out of the box with Bun (v0.7 and later). Get started with one of Vite's templates.

```bash
$ bunx create-vite my-app
$ bun x create-vite my-app
✔ Select a framework: › React
✔ Select a variant: › TypeScript + SWC
Scaffolding project in /path/to/my-app...
Expand All @@ -28,12 +28,12 @@ bun install

---

Start the development server with the `vite` CLI using `bunx`.
Start the development server with the `vite` CLI using `bun x`.

The `--bun` flag tells Bun to run Vite's CLI using `bun` instead of `node`; by default Bun respects Vite's `#!/usr/bin/env node` [shebang line](<https://en.wikipedia.org/wiki/Shebang_(Unix)>). After Bun 1.0 this flag will no longer be necessary.

```bash
bunx --bun vite
bun x --bun vite
```

---
Expand All @@ -43,7 +43,7 @@ To simplify this command, update the `"dev"` script in `package.json` to the fol
```json-diff#package.json
"scripts": {
- "dev": "vite",
+ "dev": "bunx --bun vite",
+ "dev": "bun x --bun vite",
"build": "vite build",
"serve": "vite preview"
},
Expand All @@ -63,7 +63,7 @@ bun run dev
The following command will build your app for production.

```sh
$ bunx --bun vite build
$ bun x --bun vite build
```

---
Expand Down