Skip to content

Commit a42dca5

Browse files
committed
chore: add bun cursor rule
1 parent a631c0a commit a42dca5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.cursor/rules/bun.mdc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
description: Use Bun instead of Node.js, npm, pnpm
3+
globs: '*.ts, *.tsx, *.html, *.css, *.js, *.jsx, package.json'
4+
alwaysApply: false
5+
---
6+
7+
Default to using Bun instead of Node.js.
8+
9+
- Use `bun <file>` instead of `node <file>` or `ts-node <file>`
10+
- Use `bun build <file.html|file.ts|file.css>` instead of `webpack` or `esbuild`
11+
- Use `bun install` instead of `npm install` or `yarn install` or `pnpm install`
12+
- Use `bun run <script>` instead of `npm run <script>` or `yarn run <script>` or `pnpm run <script>`
13+
- Use `bunx <package> <command>` instead of `npx <package> <command>`
14+
- Bun automatically loads .env, so don't use dotenv.

0 commit comments

Comments
 (0)