node.jsyarnpkglernayarn-workspaces

Upgrading yarn in root directory do not upgrade Workspace dependencies


On running yarn upgrade in root directory, it is upgrading only root directory's package.json and yarn.lock, but I need to upgrade workspace dependencied.

Is there a way to do so, other than using yarn upgrade-interactive?


Solution

  • I found an alternative

    yarn workspace (workspace name) add (package name) (type of dependancy)
    

    for all the packages you need to upgrade.

    Then

    yarn install