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

151
Views
Test angular library from main app without breaking in build time

I'm currently running an Angular 8 project along with it's library on the same version. This library lives in another completely different project so we required to do an npm link inside library, npm link my-libray within my-app and then launch ng build my-libray --watch inside my-library project and ng serve in my-app.

Problems with this approach is whenever I make a change in the library, a rebuild process is running on my-app and never waits until is fully complete the rebuild process in the library since the dist folder is removed resulting in webpack crashing and yes, I can actually stop the process and re run ng serve again but if rebuild time is already time consuming, I prefer not to mention how long takes to serves up the app again.

How could I approach this in a not so painful way? Ideally I'd like to know if for a dev environment I can play with just the raw code rather than pointing to the dist build version. I think that's something which can be accomplished by just modifying paths attributes inside tsconfig.json to make your library pointing to a different folder, something like this:

 "paths" {
   "my-library": ["libs/my-library/src/*"]
 }

But this only works if you work in the same workspace and as I just said, library and app lives in differents repositories.

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!