pnpm Workspaces/Filter dependencies

Run command on a package and all its dependencies.

Section: Workspace Filter Recipes

Filter dependencies

bash
bash
pnpm --filter ...@acme/web build
Explanation

Run command on a package and all its dependencies.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Workspace Filter Recipes
Filter exact package
Target a single package by name.
OpenIn sheetbashsame section
Filter dependents
Run command on a package and all dependents.
OpenIn sheetbashsame section
Filter changed since branch
Target packages changed since a Git ref and their dependents.
OpenIn sheetbashsame section
Filter by glob
Target packages that match a glob pattern.
OpenIn sheetbashsame section
Filter by path
Target packages selected by filesystem path.
OpenIn sheetbashsame section
Create pnpm-workspace.yaml
Define the workspace root and included package globs.
OpenIn sheetbash2 tag match