yarn workspace — Yarn CLI reference
Run a command in a workspace
Docs/Reference/CLI/workspace
yarn workspace
Run a command in a workspace
yarn workspace <WORKSPACE> <ARGS…>
This command changes into the selected workspace and runs another Yarn command from there.
Examples#
Add a package to a single workspace
yarn workspace components add -D react
Run build script on a single workspace
yarn workspace components run build