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

110
Vistas
how to manage multiple versions of multiple packages with Lerna?

I am using Lerna to manage multiple packages and I would like to support multiple versions of such packages.

I need to start a new version 3 (breaking changes) in the packages while providing continuous support for the previous version 2.

How do I maintain multiple concurrent versions of multiple packages in Lerna?

Many thanks.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

By itself Lerna isn't designed to manage different versions of your packages. You need to publish your packages in order to achieve what I believe is your desired effect. Once you have old versions of your package(s) published, Lerna makes it very easy to switch between them.

When you run lerna bootstrap, Lerna will first try to satisfy any dependencies while looking through your workspaces. However, if it does not find a package with a matching name AND version it will try to npm install (or yarn add) your package.

This way, you can keep working on your latest 3.x version of the code locally, and when you need to point to the old version for maintenance, just change the required version in your package.json file(s), and when you run bootstrap, Lerna will fetch the appropriate package.

about 4 years ago · Juan Pablo Isaza Denunciar
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