bun · Bun Docs
Bun Workspaces
Explains how to manage monorepos using Bun workspaces to link multiple packages within a single repository.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Bun Workspaces
Explains how to manage monorepos using Bun workspaces to link multiple packages within a single repository.
When To Use
Use when configuring a monorepo structure to manage multiple interdependent packages with a single lockfile and shared dependencies using Bun.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/bun-workspaces-workflow-guide.md | Documentation covering core commands, publishing, analysis, and workspace management for Bun workspaces. | Questions about documentation covering core commands, publishing, analysis, and workspace management for Bun workspaces. |
examples/bun-workspaces-monorepo-directory-structure.text | A text representation of a monorepo directory structure demonstrating how Bun Workspaces organizes multiple packages and configuration files. | Exact payloads, commands, or snippets shown in A text representation of a monorepo directory structure demonstrating how Bun Workspaces organizes multiple packages... |
examples/bun-workspaces-package-json-configuration.text | A package.json configuration demonstrating the workspaces field and workspace protocol dependencies for a Bun monorepo. | Exact payloads, commands, or snippets shown in A package.json configuration demonstrating the workspaces field and workspace protocol dependencies for a Bun monorepo. |
examples/bun-workspaces-package-json-configuration-2.text | A package.json file demonstrating the workspaces field configuration including inclusion and exclusion patterns. | Exact payloads, commands, or snippets shown in A package.json file demonstrating the workspaces field configuration including inclusion and exclusion patterns. |
examples/bun-workspaces-package-json-configuration-3.text | A package.json configuration demonstrating the workspace protocol for linking local packages. | Exact payloads, commands, or snippets shown in A package.json configuration demonstrating the workspace protocol for linking local packages. |
examples/bun-workspaces-install-filter-command.text | A command line example demonstrating how to use the bun install filter flag to include specific workspace patterns while excluding others. | Exact payloads, commands, or snippets shown in A command line example demonstrating how to use the bun install filter flag to include specific workspace patterns wh... |
examples/bun-workspaces-dependency-version-syntax.text | A text file demonstrating the syntax for specifying workspace dependency versions using wildcard, caret, and tilde patterns. | Exact payloads, commands, or snippets shown in A text file demonstrating the syntax for specifying workspace dependency versions using wildcard, caret, and tilde pa... |
examples/bun-workspaces-version-resolution.text | An example demonstrating how Bun resolves workspace protocol versions to specific version numbers. | Exact payloads, commands, or snippets shown in An example demonstrating how Bun resolves workspace protocol versions to specific version numbers. |
What This Skill Covers
-
- Workspaces - Bun Skip to main content Bun home page Search... ⌘ K Install Bun Search... Navigation Workspace Management Workspaces RuntimePackage ManagerBu...
- Main sections:
Core Commands,Publishing & Analysis,Workspace Management,Advanced Configuration,Documentation Index.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://bun.sh/docs/pm/workspaces