Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 992 Bytes

100-package-manager.md

File metadata and controls

38 lines (29 loc) · 992 Bytes
description globs alwaysApply
Use Bun commands when installing or running to maintain consistent package management
true

Bun Package Manager Rules

blefnk/rules 1.0.0

Context

  • For installing dependencies and running scripts in this project
  • Eliminates mixing other package managers

Requirements

  • Install dependencies with bun add [package] or bun add -D [package].
  • Run scripts using bun [script] (exception: for build and test scripts use bun run build or bun run test).
  • For standalone scripts use bun path/to/script.ts instead of node, ts-node or tsx.
  • For one-off commands, use bun x [command] instead of npx.
  • Install Shadcn components via bun ui [component-name].
  • Update user schema by editing src/lib/auth.ts then bun db:auth.

Examples

bun add axios bun dev bun x vitest npm install axios npm run dev npx vitest