yarn / 3.1.1 / cli / workspace.html /

yarn workspace

Run a command within the specified workspace.

Usage

$> yarn workspace <workspaceName> <commandName> ...

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

Details

This command will run a given sub-command on a single workspace.

© 2016–present Yarn Contributors
Licensed under the BSD License.
https://yarnpkg.com/cli/workspace