Skip to main content
Version: 4.x


pnpm-workspace.yaml defines the root of the workspace and it allows to include/exclude directories from the workspace. By default, all packages of all subdirectories are included.

An example of a pnpm-workspace.yaml:

# all packages in subdirs of packages/ and components/
- 'packages/**'
- 'components/**'
# exclude packages that are inside test/ directories
- '!**/test/**'

The root package.json is always included, even when custom location wildcards are used.

Last updated on by Zoltan Kochan