Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
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-writer and case-elastic to run tests using the real case-fp:3.6.0
  • case-fp to run tests using local code
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda