yarn workspace <workspaceName> <action> <packageName>
Example
react install to package-0 and package-1
bad
yarn workspace package-0 add react
react install to package-0
yarn workspace package-1 add react
react install to package-1
good
yarn workspace * add react
yarn workspace all add react
yarn workspaces add react
Use lerna + yarn
lerna does not support deleting dependent packages
yarn does not support installation and deletion for all packages
This is where the problem lies
Or is there any compromise to deal with this problem?