New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Questiong/Feature request] devDependencies and version bump #1737
Comments
Could you clarify your question? |
@Siilwyn If the only change a package That's something I really wanted too. |
Ah I see, this looks like a duplicate of #1357. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I guess it's still relevant. |
It probably should, although perhaps not by default. In the dev/peer case, that does seem unnecessary. |
While building Reach UI making the slightest change to any packages causes most of them to have to bump versions because the examples in one package have a dev dependency on another. For example:
All because an example in the repo has a dev dependency on Tooltip 🙃 |
while not a solution, a work around we're happy with, is to almost never use devDeps in the component packages. We put all devDeps into the root/projects package.json. The only exception we have are devDeps that affect the output of the distributed code i.e. if we bump our build tool, we do want to bump the component packages just incase the distribution has changed. We've been using this method for about a year while using lerna and it certainly reduces package bumps. I think this method proves the need for an official Lerna solution, but also proves the solution may not be as simple as it first seems! (since some devDep changes should bump the package) |
Ah! That seems like an obvious workaround now that you mention it, thanks, I'll do that. |
Root dependencies using relative |
The downside of this workaround (removing them from devDeps) is that lerna doesn't execute Maybe it could also check peerDeps. |
@diegohaz Oh, yes, I didn't mean the solution to Ryan's problem was acceptable for yours. Proper peer/devDep pairs should not necessarily trigger a package bump, but the devil is in the details... |
This avoids bumping these packages will transitively bump other packages. This is a known Lerna issue: lerna/lerna#1737
Hi, we could also really benefit from this feature at our project. We are currently in a not very good state, where many packages need dev/peer dependency to another package in the same monorep. We migrated to lerna recently and right now, whenever we want to release a single package, it is causing an unnecessary release of 10+ packages, mostly because of dev/peer dependencies. |
hey, In the mean time using my 'devDeps in root' approach I'm forced to stick with @evocateur Would this feature request, even a naive first 'experimental' first stab, be possible to help some folks out? unless others have another workaround or solution for Yarn PNP? Other linked requests: |
Is it possible to ignore only
devDependencies
changes from package.json?The text was updated successfully, but these errors were encountered: