File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
etc/api/angular_devkit/schematics/tools
packages/angular_devkit/schematics/tools/workflow Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ export declare class NodeWorkflow extends workflow.BaseWorkflow {
134
134
135
135
export interface NodeWorkflowOptions {
136
136
dryRun ?: boolean ;
137
+ engineHostCreator ?: ( options : NodeWorkflowOptions ) => NodeModulesEngineHost ;
137
138
force ?: boolean ;
138
139
optionTransforms ?: OptionTransform < object , object > [ ] ;
139
140
packageManager ?: string ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export interface NodeWorkflowOptions {
25
25
resolvePaths ?: string [ ] ;
26
26
schemaValidation ?: boolean ;
27
27
optionTransforms ?: OptionTransform < object , object > [ ] ;
28
+ engineHostCreator ?: ( options : NodeWorkflowOptions ) => NodeModulesEngineHost ;
28
29
}
29
30
30
31
/**
@@ -46,7 +47,8 @@ export class NodeWorkflow extends workflow.BaseWorkflow {
46
47
root = options . root ;
47
48
}
48
49
49
- const engineHost = new NodeModulesEngineHost ( options . resolvePaths ) ;
50
+ const engineHost =
51
+ options . engineHostCreator ?.( options ) || new NodeModulesEngineHost ( options . resolvePaths ) ;
50
52
super ( {
51
53
host,
52
54
engineHost,
You can’t perform that action at this time.
0 commit comments