Back to Pnpm Io

pnpm-workspace.yaml

versioned_docs_archived/version-3.x/pnpm-workspace_yaml.md

latest463 B
Original Source

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:

yaml
packages:
  # the root package.json
  - '.'
  # all packages in subdirs of packages/ and components/
  - 'packages/**'
  - 'components/**'
  # exclude packages that are inside test/ directories
  - '!**/test/**'