@angular-devkit/schematics 11.0.0-rc.3 → 11.0.3

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.0.0-rc.3",
3
+ "version": "11.0.3",
4
4
  "description": "Angular Schematics - Library",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "schematics"
19
19
  ],
20
20
  "dependencies": {
21
- "@angular-devkit/core": "11.0.0-rc.3",
21
+ "@angular-devkit/core": "11.0.3",
22
22
  "ora": "5.1.0",
23
23
  "rxjs": "6.6.3"
24
24
  },
@@ -36,11 +36,5 @@
36
36
  "bugs": {
37
37
  "url": "https://github.com/angular/angular-cli/issues"
38
38
  },
39
- "homepage": "https://github.com/angular/angular-cli",
40
- "husky": {
41
- "hooks": {
42
- "commit-msg": "yarn -s ng-dev commit-message pre-commit-validate --file-env-variable HUSKY_GIT_PARAMS",
43
- "prepare-commit-msg": "yarn -s ng-dev commit-message restore-commit-message-draft --file-env-variable HUSKY_GIT_PARAMS"
44
- }
45
- }
39
+ "homepage": "https://github.com/angular/angular-cli"
46
40
  }
@@ -8,6 +8,7 @@
8
8
  import { Path, schema, virtualFs } from '@angular-devkit/core';
9
9
  import { workflow } from '@angular-devkit/schematics';
10
10
  import { FileSystemEngine } from '../description';
11
+ import { OptionTransform } from '../file-system-engine-host-base';
11
12
  import { NodeModulesEngineHost } from '../node-module-engine-host';
12
13
  export interface NodeWorkflowOptions {
13
14
  force?: boolean;
@@ -17,6 +18,7 @@ export interface NodeWorkflowOptions {
17
18
  registry?: schema.CoreSchemaRegistry;
18
19
  resolvePaths?: string[];
19
20
  schemaValidation?: boolean;
21
+ optionTransforms?: OptionTransform<object, object>[];
20
22
  }
21
23
  /**
22
24
  * A workflow specifically for Node tools.
@@ -48,6 +48,11 @@ class NodeWorkflow extends schematics_1.workflow.BaseWorkflow {
48
48
  });
49
49
  engineHost.registerTaskExecutor(node_2.BuiltinTaskExecutor.RunSchematic);
50
50
  engineHost.registerTaskExecutor(node_2.BuiltinTaskExecutor.TslintFix);
51
+ if (options.optionTransforms) {
52
+ for (const transform of options.optionTransforms) {
53
+ engineHost.registerOptionsTransform(transform);
54
+ }
55
+ }
51
56
  if (options.schemaValidation) {
52
57
  engineHost.registerOptionsTransform(schema_option_transform_1.validateOptionsWithSchema(this.registry));
53
58
  }