Skip to content

Commit 7e1e8ad

Browse files
Keen Yee Liauvikerman
authored andcommitted
feat(@angular/cli): allow subclass to override default collection name
This PR provides a way for subclass that extends `SchematicCommand` to provide a different default collection name. This is needed in g3 where the collection name is different from external.
1 parent 07bfd1e commit 7e1e8ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/cli/models/schematic-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export abstract class SchematicCommand<
7878
private _workspace: workspaces.WorkspaceDefinition;
7979
protected _workflow: NodeWorkflow;
8080

81-
private readonly defaultCollectionName = '@schematics/angular';
81+
protected defaultCollectionName = '@schematics/angular';
8282
protected collectionName = this.defaultCollectionName;
8383
protected schematicName?: string;
8484

0 commit comments

Comments
 (0)