Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

418
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda