ng new
does not show help from custom schematic
#13681
Labels
area: @angular/cli
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: `6.1.3`Description
When executing:
The help displayed is not the help from the
ng-new
schematic in the custom collection. The help from@schematics/angular
is displayed instead.🔬 Minimal Reproduction
I have reproduced it with
@nativescript/schematis
package:Expected: Print the help for
@nativescript/schematics
ng-newActual: Print the help for
@schematics/angular
Note: Using
@angular/[email protected]
prints the correct help🌍 Your Environment
Anything else relevant?
Debugging the issue led me to this place in the angular cli code.
schematicName
is defaulted tong-new
when executingng new
. However, theoptions.collection
(if such option is provided) should used to load the collection schema and description.Issue was reported here also: NativeScript/nativescript-schematics#157
The text was updated successfully, but these errors were encountered: