Skip to content

Commit 60509ae

Browse files
committed
fix(@angular/cli): Correct selecting custom schematic collection
1 parent d8e3d79 commit 60509ae

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)