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:
# 指定根目录直接子目录中的包
- 'my-app'
# packages/ 直接子目录中的所有包
- 'packages/*'
# components/ 子目录中的所有包
- 'components/**'
# 排除测试目录中的包
- '!**/test/**'
即使使用了自定义目录位置通配符,根软件包也总是被包 含.
Catalogs are also defined in the pnpm-workspace.yaml
file. See Catalogs for details.
pnpm-workspace.yaml
packages:
- 'packages/*'
catalog:
chalk: ^4.1.2
catalogs:
react16:
react: ^16.7.0
react-dom: ^16.7.0
react17:
react: ^17.10.0
react-dom: ^17.10.0