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 direct subdirs of packages/
  3. - 'packages/*'
  4. # all packages in subdirs of components/
  5. - 'components/**'
  6. # exclude packages that are inside test directories
  7. - '!**/test/**'

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