pnpm-workspace
pnpm-workspace.yaml
is the file defining all packages in a monorepo.
Note
pnpm
refers to the root of the repository as the 'workspace'.
Hence why this is called pnpm-workspace
.
npm
refers to packages inside a monorepo as a 'workspace'.
For example (yoinked from the docs):
yaml
packages:
# specify a package in a direct subdir of the root
- 'my-app'
# all packages in direct subdirs of packages/
- 'packages/*'
# all packages in subdirs of components/
- 'components/**'
# exclude packages that are inside test directories
- '!**/test/**'