• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

144
Vistas
Can an npm/yarn project depend on a git repo which hasn't been built?

We are developing a Vue component library for use in our team's apps. It's open source but it doesn't make sense to actively distribute it to the community. Firstly because it's only valuable to us, secondly because we want a simple development procedure with small iterations.

I figure we should yarn add it from its GitHub repo url, and not publish it to NPM. What confuses me with that approach is how to get it built? Would I have to build the library and add its dist/ to git? Or create a GitHub release any time I want to update an app that uses the library? Or can I easily build a dependency from the depending app's dev env?

(I have tried yarn add author/repo#branch but it doesn't build node_modules/repo/dist. I have no prior experience in publishing to NPM.)

almost 3 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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda