Same question asked here but using lerna publish
and yarn workspaces instead of pnpm publish
...
- Publishing five packages in a monorepo
- Using lerna fixed/locked mode for versioning.
- Version to be produced is
2.0.0
. - Assume yarn workspaces and the lerna.json are setup correctly.
- Four of those packages are dependent on a package in the monorepo called
foo
. Each of those four packages have a yarn workspace dependency like this...
{
"dependencies": {
"foo": "workspace:*"
}
}
When I perform a lerna publish
, will it automatically replace workspace:*
in the four packages with 2.0.0
? I didn't see this explicitly stated with regard to yarn workspaces on https://lerna.js.org/docs/features/version-and-publish. I assume it would be similar to pnpm but thought I'd check just in case.