espacio de trabajo de yarn

Para aprender más acerca de las áreas de trabajo, compruebe estos enlaces:

yarn workspace <workspace_name> <command>

This will run the chosen Yarn command in the selected workspace.

Ejemplo:

yarn workspace awesome-package add react react-dom --dev

This will add react and react-dom as devDependencies in your packages/awesome-package/package.json.

Si desea eliminar un paquete:

yarn workspace web-project remove some-package --save

The example above would remove some-package from packages/web-project/package.json.