Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

191
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda