@angular-devkit/schematics 11.1.4 → 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Angular Schematics - Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"schematics"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-devkit/core": "11.
|
|
22
|
-
"ora": "5.
|
|
21
|
+
"@angular-devkit/core": "11.2.0",
|
|
22
|
+
"ora": "5.3.0",
|
|
23
23
|
"rxjs": "6.6.3"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
@@ -19,6 +19,7 @@ export interface NodeWorkflowOptions {
|
|
|
19
19
|
resolvePaths?: string[];
|
|
20
20
|
schemaValidation?: boolean;
|
|
21
21
|
optionTransforms?: OptionTransform<object, object>[];
|
|
22
|
+
engineHostCreator?: (options: NodeWorkflowOptions) => NodeModulesEngineHost;
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* A workflow specifically for Node tools.
|
|
@@ -19,6 +19,7 @@ const schema_option_transform_1 = require("../schema-option-transform");
|
|
|
19
19
|
*/
|
|
20
20
|
class NodeWorkflow extends schematics_1.workflow.BaseWorkflow {
|
|
21
21
|
constructor(hostOrRoot, options) {
|
|
22
|
+
var _a;
|
|
22
23
|
let host;
|
|
23
24
|
let root;
|
|
24
25
|
if (typeof hostOrRoot === 'string') {
|
|
@@ -29,7 +30,7 @@ class NodeWorkflow extends schematics_1.workflow.BaseWorkflow {
|
|
|
29
30
|
host = hostOrRoot;
|
|
30
31
|
root = options.root;
|
|
31
32
|
}
|
|
32
|
-
const engineHost = new node_module_engine_host_1.NodeModulesEngineHost(options.resolvePaths);
|
|
33
|
+
const engineHost = ((_a = options.engineHostCreator) === null || _a === void 0 ? void 0 : _a.call(options, options)) || new node_module_engine_host_1.NodeModulesEngineHost(options.resolvePaths);
|
|
33
34
|
super({
|
|
34
35
|
host,
|
|
35
36
|
engineHost,
|