pnpm Workspace Generator
Configure your pnpm monorepo workspace visually and get a ready-to-use pnpm-workspace.yaml instantly. Add package globs, set up a catalog for shared versions, pin overrides, and toggle workspace-wide flags.
Frequently Asked Questions
What is pnpm-workspace.yaml and why do I need it?▼
pnpm-workspace.yaml is the configuration file that tells pnpm which directories in your repository contain workspace packages. By listing glob patterns such as 'packages/*' or 'apps/*', pnpm treats those directories as local packages and links them together automatically. Without this file, pnpm treats your repository as a single package and does not enable monorepo features like shared dependencies or cross-package linking.
What is the pnpm catalog feature?▼
Introduced in pnpm v9, the catalog feature lets you define a set of canonical dependency versions in pnpm-workspace.yaml under the 'catalog:' key. Individual packages in the workspace can then reference these versions using 'catalog:' as a version specifier in their package.json instead of hard-coding a version string. This keeps all packages in sync and makes version bumps a single-file change.
When should I use package overrides?▼
Use overrides when you need to force every package in the workspace to use a specific version of a transitive dependency — for example, to patch a security vulnerability in a deeply nested package, or to resolve conflicting peer dependency requirements between packages. Overrides are a last resort; prefer updating the direct dependency first.
Should I enable shamefullyHoist?▼
Only enable shamefullyHoist if you have a tool or framework that relies on Node.js resolution finding packages directly in the root node_modules directory rather than through pnpm's isolated symlink layout. Examples include some older Webpack plugins or tools that use require.resolve without traversing symlinks. Enabling it trades strictness for compatibility and can hide missing dependency declarations.
What is the difference between pnpm overrides and resolutions (npm/yarn)?▼
All three fields serve the same purpose — forcing a specific version of a transitive dependency — but have different syntax and scope. npm uses 'overrides' in package.json, Yarn uses 'resolutions', and pnpm uses 'overrides' in either package.json or pnpm-workspace.yaml. Placing overrides in pnpm-workspace.yaml applies them workspace-wide across all packages, which is usually what you want in a monorepo.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
YAML Validator Pro
Advanced YAML validator with line-number error reporting, JSON preview, and schema hints for common YAML pitfalls. Free, runs in your browser.
Open free tool →
YAML to JSON Converter
Convert YAML to JSON and JSON to YAML online. Bidirectional conversion with syntax highlighting, error detection, and formatted output. Supports multi-document YAML and complex nested structures.
Open free tool →
YAML Diff Viewer
Compare two YAML files side-by-side with highlighted differences. Added lines in green, removed in red, changed in yellow. Supports semantic key-level diff. Free, runs in your browser.
Open free tool →
More Free Tools
Related Articles
pnpm Workspaces: The Complete Monorepo Guide (2026)
Master pnpm workspaces for monorepo development. Covers workspace protocol, catalogs feature, filtering, recursive scripts, comparison with npm workspaces and Yarn Berry, and migrating from Lerna.
pnpm vs npm vs yarn: Package Manager Performance Benchmark 2026
Real benchmarks comparing pnpm, npm, and yarn in 2026 — install speed, disk usage, monorepo support, lockfile format, and which to choose for your JavaScript project.
pnpm vs npm vs Yarn: Node.js Package Manager Comparison 2026
A comprehensive technical comparison of pnpm, npm, and Yarn for Node.js development in 2026 — covering install speed, disk usage, workspace support, lockfile format, monorepo capabilities, and a migration guide.
npm vs pnpm vs Yarn vs Bun: Best JavaScript Package Manager in 2026
A comprehensive comparison of npm, pnpm, Yarn Classic, Yarn Berry, and Bun package managers. Benchmark data, disk usage, monorepo support, and a recommendation matrix to help you pick the right tool in 2026.
pnpm Workspaces & Monorepo Best Practices 2026
Master pnpm workspaces for monorepo management: setup, filtering, shared packages, changesets versioning, catalog feature, and comparison with npm/yarn workspaces.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →