Possible improvements to resolve some irritants when working with Lerna #3172
gaelhameon
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm currently still using lerna for the release workflow of my Monorepo, mainly because I use the conventional commits flag.
From what I understand, the Yarn Release Workflow, does not offer a way of automatically deciding version bumps based on commit messages.
Assuming the answer to both my previous questions is no, I think I'll keep using Lerna in the short/medium term.
I currently have two issues with this:
workspaces:
resolutionsThe first issue is the most irritating. I would like to be able to just
yarn add package-name
to let yarn take care of specyfing dependencies in package.json, and it actually works fine, until I have to do anything that relies on Lerna, which will complain with this:So at this point I have to manually figure out the latest version of each of my packages and manually replace them in all of my package.json files, which is very tedious.
So right now, instead of doing that, I basically just stopped using yarn add, and I manually add my dependencies in package.json, which is also tedious, but in smaller bits ...
Ideas for improvements:
beforeWorkspacePacking
hook and make it available to other plugins, so that a new command could be used to change the protocols, but stop there and leave the changes in the working tree, instead of packingWhat do you think of these ideas ? If I were to work on a pull request to implement one of those, would you consider merging it ?
Regarding the second issue, its not as bad and I haven't really looked into it so far, but if anybody has a similar problem and ways to solve it, I'd be happy to hear !
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions