pnpm Workspaces

Native monorepo support driven by a `pnpm-workspace.yaml` file at the repository root. Supports the `workspace:` protocol for explicit local package references, a shared workspace lockfile, package filtering via `--filter`, recursive commands across all workspace packages, and Catalogs for centralized dependency version management across a monorepo. Integrates with Changesets and Rush for multi-package releases.

pnpm Workspaces is one of 5 APIs that pnpm publishes on the APIs.io network.

Tagged areas include Monorepo, Node.js, Package Manager, and Workspaces. The published artifact set on APIs.io includes API documentation.

API entry from apis.yml

apis.yml Raw ↑
aid: pnpm:pnpm-workspaces
name: pnpm Workspaces
tags:
- Monorepo
- Node.js
- Package Manager
- Workspaces
humanURL: https://pnpm.io/workspaces
properties:
- url: https://pnpm.io/workspaces
  type: Documentation
- url: https://pnpm.io/pnpm-workspace_yaml
  name: pnpm-workspace.yaml reference
  type: Documentation
- url: https://pnpm.io/catalogs
  name: Catalogs
  type: Documentation
- url: https://pnpm.io/filtering
  name: Filtering
  type: Documentation
- url: https://pnpm.io/cli/recursive
  name: pnpm recursive (-r)
  type: Documentation
description: Native monorepo support driven by a `pnpm-workspace.yaml` file at the repository root. Supports
  the `workspace:` protocol for explicit local package references, a shared workspace lockfile, package
  filtering via `--filter`, recursive commands across all workspace packages, and Catalogs for centralized
  dependency version management across a monorepo. Integrates with Changesets and Rush for multi-package
  releases.