pnpm-workspace.yaml

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

For example:

pnpm-workspace.yaml

  1. packages:
  2. # all packages in subdirs of packages/ and components/
  3. - 'packages/**'
  4. - 'components/**'
  5. # exclude packages that are inside test directories
  6. - '!**/test/**'

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