bun-package-manager
/bun-package-manager
Zarządza pakietami JavaScript przez Bun: install, add, remove, update, bun outdated, przestrzenie robocze, instalacja w CI z --frozen-lockfile i debugowanie konfliktów.
- Autor
- laurigates ↗
- Repozytorium
- claude-plugins ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 24.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 24.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Zarządza pakietami JavaScript przez Bun: install, add, remove, update, bun outdated, przestrzenie robocze, instalacja w CI z --frozen-lockfile i debugowanie konfliktów.
Oryginalny opis (EN)
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.
Jak działa
- When to Use This Skill
- Core Expertise
- Essential Commands
- Workspace Management
- Agentic Optimizations
- Quick Reference
- Error Handling
- Environment Variables
Podgląd SKILL.md
---
name: bun-package-manager
description: 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.
user-invocable: false
allowed-tools: Bash, Read, Grep, Glob, TodoWrite
created: 2025-12-20
modified: 2026-05-09
reviewed: 2025-12-20
---
# 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
```bash
# 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
```bash
# 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
```bash
# Remove dependency
bun remove <package>
# Remove from devDependencies
bun remove --dev <package>
# Dry run
bun remove --dry-run <package>
```
### Update Packages
```bash
# 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
```bash
# 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
```json
{
"name": "monorepo",
"private": true,
"workspaces": ["packages/*", "apps/*"]
}
```
### Workspace Operations
```bash
# 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
```json
{
"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:**
```bash
# Use frozen lockfile
bun install --frozen-lockfile
```
**Peer dependency conflicts:**
```bash
# Force install anyway
bun install --force
```
**Package not found:**
```bash
# Check if package exists
bun why <package>
```
## Environment Variables
| Variable | Description |
|----------|-------------|
| `BUN_OPTIONS` | Global CLI flags |
| `BUN_INSTALL` | Bun installation directory |
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · laurigates/claude-plugins | 100 | MIT |
| secondsky/claude-skills | 100 | MIT |
| TheBushidoCollective/han | 100 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 3f313703b566 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100bun-install
Instaluje wszystkie zależności z package.json przez bun install: początkowa konfiguracja checkoutu, powtarzalna instalacja w CI z --frozen-lockfile i wdrożenie z --production. - 100bun-lockfile-update
Aktualizuje lockfile Bun (bun.lock): bun update, regeneracja, audyty bezpieczeństwa, rozwiązywanie konfliktów lockfile i aktualizacja zależności. - 100bun
Pomaga korzystać z Bun jako uniwersalnego środowiska JavaScript i TypeScript, menedżera pakietów, bundlera i test runnera: serwery HTTP, pakiety, testy i migracja z Node.js. - 95package-management
Pomaga wybierać i konfigurować menedżery pakietów JavaScript i TypeScript npm, yarn, pnpm i bun, zarządzać zależnościami, workspace'ami monorepo, plikami lock oraz publikować pakiety. - 100bun-runtime
Obsługuje Bun jako szybkie środowisko JavaScript, bundler, test runner i menedżer pakietów, w tym zastępowanie Node.js, przyspieszanie testów oraz Bun.serve, Bun.file i bun:sqlite. - 85bun
Podaje wzorce pracy z runtime Bun: polecenia bun, package.json i bun.lock, skrypty TypeScript oraz tworzenie pluginów Claude Code.