Using Yarn Workspaces it's very easy to install the packages for a single Workspace using yarn install --focus
when inside one of the package directories.
However, sometimes I would like the ability to install only the packages listed in the top-level package.json
. I run a linter across the entire repo, and I'd like to be able to install the linting dependencies without needing to install every package needed across the workspace.
How can I do this?