Skip to content

Can you add a base-path parameter with ng generate command #24729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lsa-shanghai opened this issue Feb 16, 2023 · 2 comments
Closed

Can you add a base-path parameter with ng generate command #24729

lsa-shanghai opened this issue Feb 16, 2023 · 2 comments

Comments

@lsa-shanghai
Copy link

lsa-shanghai commented Feb 16, 2023

Command

generate

Description

When I build angular library with Secondary Entry Points in a sample layout as below:

my_package 
├── src
|   ├── public_api.ts
|   └── *.ts
├── ng-package.json
├── package.json
└── testing
    ├── src
    |   ├── public_api.ts
    |   └── *.ts
    └── ng-package.json

I need to use ng g command under main entry point and Secondary Entry Points. But the command just works with "src\lib" as base path.

Describe the solution you'd like

Could you provide "base-path" parameter with ng g command.

Describe alternatives you've considered

No response

@alan-agius4
Copy link
Collaborator

Hey, let’s continue tracking the generation of second entry-points in #19070.

ng g library is definitely not intended to be used to generate a secondary entry-point, as it creates and Angular library project inside a workspace.

@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 17, 2023
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants