schematics-cli: inconsistency in referencing collection #12600
Labels
area: devkit/schematics
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
Milestone
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
schematics schematic --name=test-schematic
.cd test-schematic
npm i
npm run build
schematics ./src: --list-schematics
schematics .:my-full-schematic --name=test
The log given by the failure
N/A
Desired functionality
When authoring a schematic and doing manual testing locally, you do the following:
In
schematics ./src: --list-schematics
, you reference the collection via./src:
. This is very confusing as I tried a lot of variations before figuring this out, i.e. the following don't work:src:
,.:
,src/:
,src/.:
.In
schematics .:my-full-schematic --name=test
, you reference the collection via.:
.It would be nice if
.:
worked for both of these. Can--list-schematics
see that thepackage.json
is there and has acollections
field just like when running a schematic?Mention any other details that might be useful
I also saw this with
@angular-devkit/schematics-cli@0.9.0-rc.2
.The text was updated successfully, but these errors were encountered: