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

169
Vistas
Monorepo setup and issue

I have a monorepo project setup with subpackages i manage.

Within these packages, some may depend on one or another within the same monorepo packages.

So, for example:

— Packages

  • componentB
  • componentA (depends on component A)

Within the package.json of componentA, componentB is set as dependency but as “file://“

This is due the fact that if i change something in componentA and B, changes in B will be directly visible in A without publishing to the repository.

For development this works perfectly fine, but how does this work when i only want to use componentA in another webapp as dependency?

The other webapp does not need componentB as dependency, but only componentA.

How does componentA, which relies on componentB, installs componentB since it was declared as file dependency?

——

A solution would be to let componentA depend on componentB with a version number instead of a file reference.

The problem then will be that if i simultaneously working on A and B, changes on B wouldnt be directly visible in A unless i release the changes in B first.

——

Im using a monorepo setup with yarn and lerna.

Anyone familiar with this problem or are there any best practices for this?

Thanks in advance!

about 4 years ago · Santiago Trujillo
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