Skip to content

Yarn 2: support focusing on a workspace for monorepo #919

@osdiab

Description

@osdiab

Is your enhancement request related to a problem? Please describe.
My project uses yarn workspaces with a monorepo, and we use Heroku to deploy our API. But just running yarn install means that it ends up installing all the dependencies of our monorepo, which wastes time especially for tools that require building during the link step.

Describe the solution you'd like
I'd like a way to configure to install using yarn workspaces focus $MY_PACKAGE_NAME to skip installing deps for all the other packages, as they're irrelevant for my Heroku app deploy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions