Skip to content

Commit 9dd33f8

Browse files
committed
fix(@angular/cli): Correct selecting custom schematic collection
1 parent 61817f7 commit 9dd33f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@angular/cli/commands/generate.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ export default Command.extend({
167167
ui: this.ui,
168168
project: this.project
169169
});
170-
const collectionName = this.getCollectionName(rawArgs);
170+
const collectionName = commandOptions.collection ||
171+
CliConfig.getValue('defaults.schematics.collection');
171172

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

0 commit comments

Comments
 (0)