pnpm Workspaces/Filter changed since branch

Target packages changed since a Git ref and their dependents.

Section: Workspace Filter Recipes

Filter changed since branch

bash
bash
pnpm --filter "...[origin/main]" test
Explanation

Target packages changed since a Git ref and their dependents.

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 dependencies
Run command on a package and all its dependencies.
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