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

194
Visualizações
Propagate yarn resolutions to other packages

I'm trying to create a "BOM" library that other projects can include, so that dependencies can be managed in a single place.

The BOM library includes a number of libraries, and I need to override some of their dependencies to resolve CVEs. However, I can't figure out how to get those overrides to propagate through to the repos setting this BOM library as a dependency.

I've tried the following:

BOM:

"dependencies": {
  "libraryA": "1.0"
},
"resolutions": {
  "libraryB": "1.5"
}

Running yarn in the BOM repo correctly does not include the original version of libraryB, only the resolutions version.

However, adding BOM as a dependency to a repo and running yarn does not, and installs the original version of libraryB specified by libraryA.

If I instead specify the version I want as an explicit dependency:

BOM:

"dependencies": {
  "libraryA": "1.0",
  "libraryB": "1.5"
}

Then both versions of libraryB are included in the yarn.lock.

How can I force my repo to respect the resolutions specified in the BOM repo?

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