qiwi / multi-semantic-release

Proof of concept that wraps semantic-release to work with monorepos.
BSD Zero Clause License
86 stars 34 forks source link

Feature request: support Yarn 2 workspace prefix #43

Open wingyplus opened 3 years ago

wingyplus commented 3 years ago

Since Yarn 2, they allowed using declare workspace dependencies with workspace prefix:

{
  "dependencies": {
    "lib-a": "workspace:lib/a"
  }
}

Currently, if we defined dependencies like example above. multi-semantic-release will always rewrite it with dependencies version. It's good to see if it can detect workspace prefix and update only case workspace:^<major>.<minor>.<patch> (match semver rules).

Ref: https://yarnpkg.com/features/workspaces

antongolub commented 3 years ago

@wingyplus,

Accepted. We have planned a migration to yarn@2 and npm@7 on Q3.

alvarlagerlof commented 2 years ago

I also have this issue too. Not finding any solutions elsewhere either.