Skip to content

How to install the yarn workspace to all 'packages/*' at one time?Β #2788

@ghost

Description

yarn workspace <workspaceName> <action> <packageName>

Example

react install to package-0 and package-1

bad

yarn workspace package-0 add react
react install to package-0

yarn workspace package-1 add react
react install to package-1

good

yarn workspace * add react
yarn workspace all add react
yarn workspaces add react


Use lerna + yarn
lerna does not support deleting dependent packages
yarn does not support installation and deletion for all packages
This is where the problem lies

Or is there any compromise to deal with this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions