Skip to content
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

Schematic blank command doesn't allow to specify the package manager. #27571

Open
Hyperxq opened this issue May 1, 2024 · 0 comments
Open

Schematic blank command doesn't allow to specify the package manager. #27571

Hyperxq opened this issue May 1, 2024 · 0 comments

Comments

@Hyperxq
Copy link

Hyperxq commented May 1, 2024

Command

new

Description

I cannot see that schematics cli commands added to the command select options.

When you create a new schematic project you only have the ability to specify the name and the author. However, you cannot specify the package manager.

Describe the solution you'd like

The NodePackageInstallTask already allows the package manager option. To support the package manager option we need to do:

  1. We need to modify the factory: https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/blank/factory.ts in the line 93, we need to add the package manager option.
    schematics blank

  2. We need to add the input to the schema.json: https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/blank/schema.json
    schematic blank schema

Describe alternatives you've considered

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants