Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
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.)

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!