Schematic blank command doesn't allow to specify the package manager.
Hyperxq opened this issue · 0 comments
Hyperxq commented
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:
-
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.
-
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
Describe alternatives you've considered
No response