defaultCollection is relative to where cmd is run not angular.json #15014
Labels
area: @angular-devkit/schematics
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
I'm not sure
Description
With
defaultCollection
set to a relative path ifng g
is ran in a sub folder it is not found.🔬 Minimal Reproduction
angular
npm i
ng g --help
cd .\projects\
ng g --help
-- or --
ng new my-app
./tools/schematics
defaultCollection
to./tools/schematics/collection.json
ng g --help
cd .\projects\
ng g --help
🔥 Exception or Error
🌍 Your Environment
minimal repo project
closed source project I found the issues on
The text was updated successfully, but these errors were encountered: