File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/angular_devkit/schematics Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export interface WorkflowExecutionContext extends RequiredWorkflowExecutionConte
1818 debug : boolean ;
1919 logger : logging . Logger ;
2020 parentContext ?: Readonly < WorkflowExecutionContext > ;
21+ allowPrivate ?: boolean ;
2122}
2223
2324export interface Workflow {
Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ export class NodeWorkflow implements workflow.Workflow {
7979 /** Create the collection and the schematic. */
8080 const collection = this . _engine . createCollection ( options . collection ) ;
8181 // Only allow private schematics if called from the same collection.
82- const allowPrivate = parentContext && parentContext . collection === options . collection ;
82+ const allowPrivate = options . allowPrivate
83+ || ( parentContext && parentContext . collection === options . collection ) ;
8384 const schematic = collection . createSchematic ( options . schematic , allowPrivate ) ;
8485
8586 // We need two sinks if we want to output what will happen, and actually do the work.
You can’t perform that action at this time.
0 commit comments