-
-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Labels
Description
Clear and concise description of the problem
When we use pnpm workspace + catalog, when we run this command:
ni add lodashIt is allowed to pass a new parameter --catalog [catalog] ], and then read pnpm-workspace.yaml and edit its catalog' or ` catalogs' fields to automatically synchronize the dependencies.
Example 1
When run this command:
ni add lodash --catalog prodIt will change the pnpm-workspace.yaml and package.json when the deps is installed:
# pnpm-workspace.yaml
catalogs:
prod:
lodash: # The version number{
"dependencies": {
"lodash": "catalog:prod"
}
}Example 2
If run this command:
ni add lodash --catalogIt will add to the default catalog:
catalog:
lodash: # The version numberSuggested solution
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
iamyuu and Stanzilla