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

417
Views
How to generate component in angular library with multiple entry points?

I have an angular project with a multiple entry points library.

For a single entry point library, I can generate new components by adding project param like:

ng g module/newComponent --project ngx-eska-theme

The new component will be added to: projects/ngx-eska-theme/src/lib/module/new-component where the angular.json options like:

"sourceRoot": "projects/ngx-eska-theme/src"

My question is:

I have multiple entry points in that package, so how can I use angular/cli for the right entry point without changing the "sourceRoot" every time?

I tried to set it to be "projects/ngx-eska-theme", but it will add the component to lib folder instead of src.

Project files

angular.json

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