返回 Skill 列表
extension
分类: 开发与工程无需 API Key

bun-install

使用Bun包管理器安装依赖

person作者: jakexiaohubgithub

/bun:install

Install all dependencies from package.json using Bun.

Context

Package file: `find . -maxdepth 1 -name "package.json" | head -1`
Lock file: `find . -maxdepth 1 -name "bun.lock*" -o -name "bun.lockb" | head -1`

Execution

  1. Check if package.json exists
  2. Run installation with appropriate flags:

Development (default):

bun install

CI/Reproducible builds:

bun install --frozen-lockfile

Production deployment:

bun install --production
  1. Report installed package count and any warnings

Post-install

  • Verify node_modules exists
  • Check for peer dependency warnings
  • Run bun run prepare if it exists (for husky/hooks)