'Lerna monorepo problem with crossed dependencies between modules when running tests
I'm having a problem running tests for my monorepo modules using lerna.
This is my repo structure (with the involved dependencies):
root
/packages
case-file-writer
case-fp: "^3.6.0"
case-elastic
case-fp: "^3.6.0"
case-fp:
version: "3.6.0"
My problem is that I'm making a breaking change in case-fp. So the other modules that use it, are failing when running repo tests. That's because lerna is installing and using the local case-fp.
As I haven't still released a new version of case-fp, it uses my local breaking changes as the 3.6.0 version.
I've tried using lerna bootstrap --force-local, and I've inserted case-fp in my nohoist lerna option, but problem is still the same.
What I expect:
case-file-writerandcase-elasticto run tests using the realcase-fp:3.6.0case-fpto run tests using local code
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
