Installing dependencies:
$ yarn
- Define fields
version
andname
inpackage.json
of workspace. - Add workspace to the root
package.json
in the fieldworkspaces
.
Printing a full list of workspaces with their dependencies.
$ yarn workspaces info
Running the chosen yarn
command in the selected workspace.
$ yarn workspace <workspace-name> <command>
Adding a common dependency to all packages (from the root folder).
$ yarn add <package-name> -W
Running script for all project packages.
$ yarn <script-name> --scope @monorepo/*