pnpm-workspace.yaml
pnpm-workspace.yaml
定义了 工作空间 的根目录,并能够使您从工 作空间中包含 / 排除目录 。 默认情况下,包含所有子目录。
例如:
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目录也总是被包含.
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