bun-package-manager
БесплатноБез исполняемых скриптовНе проверенFast JavaScript package management with Bun — install, add, remove, update. Use when installing all deps, adding/removing packages, running `bun…
от laurigates★ 61 звезда на GitHubОб этом скилле
Bun Package Manager
When to Use This Skill
| Scenario | Use this skill | Alternative |
|---|---|---|
| Installing all project dependencies | Yes | N/A |
| Adding or removing packages | Yes | bun-add for quick single-package additions |
| Updating packages or checking outdated | Yes | N/A |
| Managing workspace dependencies | Yes | N/A |
CI reproducible installs (--frozen-lockfile) |
Yes | N/A |
| Running scripts or tests | No - use bun-development |
bun-test for quick test runs |
| Publishing packages to npm | No - use bun-publishing |
N/A |
| Debugging lockfile conflicts | Yes | bun-lockfile-update for targeted lockfile operations |
Core Expertise
Bun's package manager is significantly faster than npm/yarn/pnpm:
- ~7x faster than npm
- ~4x faster than pnpm
- Native workspace support
- Compatible with npm registry
Essential Commands
Install Dependencies
# Standard install
bun install
# CI/reproducible (frozen lockfile)
bun install --frozen-lockfile
# Production only (no devDependencies)
bun install --production
# Force reinstall
bun install --force
# Dry run (preview)
bun install --dry-run
Add Packages
# Add dependency
bun add <package>
# Add dev dependency
bun add --dev <package>
bun add -d <package>
# Pin exact version (no ^)
bun add --exact <package>
bun add -E <package>
# Global install
bun add --global <package>
bun add -g <package>
# Add to specific workspace
bun add <package> --cwd packages/mylib
Remove Packages
# Remove dependency
bun remove <package>
# Remove from devDependencies
bun remove --dev <package>
# Dry run
bun remove --dry-run <package>
Update Packages
# Update within semver ranges
bun update
# Update to latest (ignore ranges)
bun update --latest
# Interactive selection
bun update --interactive
# Update across workspaces
bun update --recursive
Inspect Dependencies
# Check outdated packages
bun outdated
# Why is package installed?
bun why <package>
# List installed packages
bun pm ls
# View package cache
bun pm cache
Workspace Management
Configuration
{
"name": "monorepo",
"private": true,
"workspaces": ["packages/*", "apps/*"]
}
Workspace Operations
# Install all workspace deps
bun install
# Add to specific workspace
bun add express --cwd apps/api
# Run in matching workspaces
bun run --filter 'package-*' build
# Run in all workspaces
bun run --workspaces test
Inter-workspace Dependencies
{
"dependencies": {
"shared-utils": "workspace:*"
}
}
Agentic Optimizations
| Context | Command |
|---|---|
| CI install | bun install --frozen-lockfile |
| Prod deploy | bun install --production |
| Preview changes | bun add --dry-run <pkg> |
| Exact versions | bun add --exact <pkg> |
| Workspace target | bun add <pkg> --cwd <path> |
| Force refresh | bun install --force |
Quick Reference
| Flag | Short | Description |
|---|---|---|
--frozen-lockfile |
Fail if lockfile changes | |
--production |
-p |
Skip devDependencies |
--dev |
-d |
Add to devDependencies |
--exact |
-E |
Pin exact version |
--global |
-g |
Global install |
--dry-run |
Preview without executing | |
--force |
-f |
Force reinstall all |
--cwd <path> |
Target directory | |
--latest |
Update to latest version | |
--recursive |
Apply across workspaces |
Error Handling
Common Issues
Lockfile mismatch in CI:
# Use frozen lockfile
bun install --frozen-lockfile
Peer dependency conflicts:
# Force install anyway
bun install --force
Package not found:
# Check if package exists
bun why <package>
Environment Variables
| Variable | Description |
|---|---|
BUN_OPTIONS |
Global CLI flags |
BUN_INSTALL |
Bun installation directory |
Установить bun-package-manager в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(bun install *)Bash(bun add *)Bash(bun remove *)Bash(bun update *)Bash(bun outdated *)Bash(bun why *)Bash(bun pm ls *)ReadGrepGlobTodoWriteFAQ
Что делает скилл bun-package-manager?
Fast JavaScript package management with Bun — install, add, remove, update. Use when installing all deps, adding/removing packages, running `bun update`/`outdated`, managing workspaces, doing a `--frozen-lockfile` CI install, or debugging conflicts.
Как установить скилл bun-package-manager?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bun-package-manager запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub