pnpm-workspace.yaml
pnpm-workspace.yaml
defines the root of the workspace and enables you to
include / exclude directories from the workspace. 默认情况下,包含所有子目录。
示例:
pnpm-workspace.yaml
packages:
# all packages in direct subdirs of packages/
- 'packages/*'
# all packages in subdirs of components/
- 'components/**'
# exclude packages that are inside test directories
- '!**/test/**'
即使使用了自定义目录位置通配符,根目录下的package目录也总是被包含.