Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@angular/cli): Correct selecting custom schematic collection
Browse files Browse the repository at this point in the history
Brocco committed Oct 5, 2017
1 parent 61817f7 commit 9dd33f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@angular/cli/commands/generate.ts
Original file line number Diff line number Diff line change
@@ -167,7 +167,8 @@ export default Command.extend({
ui: this.ui,
project: this.project
});
const collectionName = this.getCollectionName(rawArgs);
const collectionName = commandOptions.collection ||
CliConfig.getValue('defaults.schematics.collection');

if (collectionName === '@schematics/angular' && schematicName === 'interface' && rawArgs[2]) {
commandOptions.type = rawArgs[2];

0 comments on commit 9dd33f8

Please sign in to comment.