@angular-devkit/schematics 18.0.3 → 18.1.0-next.1

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": "18.0.3",
3
+ "version": "18.1.0-next.1",
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
  "tooling"
19
19
  ],
20
20
  "dependencies": {
21
- "@angular-devkit/core": "18.0.3",
21
+ "@angular-devkit/core": "18.1.0-next.1",
22
22
  "jsonc-parser": "3.2.1",
23
23
  "magic-string": "0.30.10",
24
24
  "ora": "5.4.1",
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { BaseException } from '@angular-devkit/core';
10
9
  import { Observable } from 'rxjs';
11
10
  import { Url } from 'url';
@@ -39,8 +38,8 @@ export declare class UnknownTaskDependencyException extends BaseException {
39
38
  export declare class CollectionImpl<CollectionT extends object, SchematicT extends object> implements Collection<CollectionT, SchematicT> {
40
39
  private _description;
41
40
  private _engine;
42
- readonly baseDescriptions?: CollectionDescription<CollectionT>[] | undefined;
43
- constructor(_description: CollectionDescription<CollectionT>, _engine: SchematicEngine<CollectionT, SchematicT>, baseDescriptions?: CollectionDescription<CollectionT>[] | undefined);
41
+ readonly baseDescriptions?: Array<CollectionDescription<CollectionT>> | undefined;
42
+ constructor(_description: CollectionDescription<CollectionT>, _engine: SchematicEngine<CollectionT, SchematicT>, baseDescriptions?: Array<CollectionDescription<CollectionT>> | undefined);
44
43
  get description(): CollectionDescription<CollectionT>;
45
44
  get name(): string;
46
45
  createSchematic(name: string, allowPrivate?: boolean): Schematic<CollectionT, SchematicT>;
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { logging } from '@angular-devkit/core';
10
9
  import { Observable } from 'rxjs';
11
10
  import { Url } from 'url';
@@ -7,7 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.formatValidator = void 0;
10
+ exports.formatValidator = formatValidator;
11
11
  const core_1 = require("@angular-devkit/core");
12
12
  async function formatValidator(data, dataSchema, formats) {
13
13
  const registry = new core_1.schema.CoreSchemaRegistry();
@@ -17,4 +17,3 @@ async function formatValidator(data, dataSchema, formats) {
17
17
  const validator = await registry.compile(dataSchema);
18
18
  return validator(data);
19
19
  }
20
- exports.formatValidator = formatValidator;
package/src/rules/base.js CHANGED
@@ -7,7 +7,20 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.applyToSubtree = exports.composeFileOperators = exports.forEach = exports.partitionApplyMerge = exports.when = exports.branchAndMerge = exports.asSource = exports.filter = exports.noop = exports.mergeWith = exports.apply = exports.chain = exports.empty = exports.source = void 0;
10
+ exports.source = source;
11
+ exports.empty = empty;
12
+ exports.chain = chain;
13
+ exports.apply = apply;
14
+ exports.mergeWith = mergeWith;
15
+ exports.noop = noop;
16
+ exports.filter = filter;
17
+ exports.asSource = asSource;
18
+ exports.branchAndMerge = branchAndMerge;
19
+ exports.when = when;
20
+ exports.partitionApplyMerge = partitionApplyMerge;
21
+ exports.forEach = forEach;
22
+ exports.composeFileOperators = composeFileOperators;
23
+ exports.applyToSubtree = applyToSubtree;
11
24
  const rxjs_1 = require("rxjs");
12
25
  const exception_1 = require("../exception/exception");
13
26
  const host_tree_1 = require("../tree/host-tree");
@@ -21,14 +34,12 @@ const call_1 = require("./call");
21
34
  function source(tree) {
22
35
  return () => tree;
23
36
  }
24
- exports.source = source;
25
37
  /**
26
38
  * A source that returns an empty tree.
27
39
  */
28
40
  function empty() {
29
41
  return () => (0, static_1.empty)();
30
42
  }
31
- exports.empty = empty;
32
43
  /**
33
44
  * Chain multiple rules into a single rule.
34
45
  */
@@ -41,14 +52,12 @@ function chain(rules) {
41
52
  return () => intermediateTree;
42
53
  };
43
54
  }
44
- exports.chain = chain;
45
55
  /**
46
56
  * Apply multiple rules to a source, and returns the source transformed.
47
57
  */
48
58
  function apply(source, rules) {
49
59
  return (context) => (0, call_1.callRule)(chain(rules), (0, call_1.callSource)(source, context), context);
50
60
  }
51
- exports.apply = apply;
52
61
  /**
53
62
  * Merge an input tree with the source passed in.
54
63
  */
@@ -57,11 +66,9 @@ function mergeWith(source, strategy = interface_1.MergeStrategy.Default) {
57
66
  return (0, call_1.callSource)(source, context).pipe((0, rxjs_1.map)((sourceTree) => tree.merge(sourceTree, strategy || context.strategy)), (0, rxjs_1.mapTo)(tree));
58
67
  };
59
68
  }
60
- exports.mergeWith = mergeWith;
61
69
  function noop() {
62
70
  return () => { };
63
71
  }
64
- exports.noop = noop;
65
72
  function filter(predicate) {
66
73
  return (tree) => {
67
74
  if (host_tree_1.HostTree.isHostTree(tree)) {
@@ -72,17 +79,14 @@ function filter(predicate) {
72
79
  }
73
80
  };
74
81
  }
75
- exports.filter = filter;
76
82
  function asSource(rule) {
77
83
  return (context) => (0, call_1.callRule)(rule, (0, static_1.empty)(), context);
78
84
  }
79
- exports.asSource = asSource;
80
85
  function branchAndMerge(rule, strategy = interface_1.MergeStrategy.Default) {
81
86
  return (tree, context) => {
82
87
  return (0, call_1.callRule)(rule, tree.branch(), context).pipe((0, rxjs_1.map)((branch) => tree.merge(branch, strategy || context.strategy)), (0, rxjs_1.mapTo)(tree));
83
88
  };
84
89
  }
85
- exports.branchAndMerge = branchAndMerge;
86
90
  function when(predicate, operator) {
87
91
  return (entry) => {
88
92
  if (predicate(entry.path, entry)) {
@@ -93,7 +97,6 @@ function when(predicate, operator) {
93
97
  }
94
98
  };
95
99
  }
96
- exports.when = when;
97
100
  function partitionApplyMerge(predicate, ruleYes, ruleNo) {
98
101
  return (tree, context) => {
99
102
  const [yes, no] = (0, static_1.partition)(tree, predicate);
@@ -103,7 +106,6 @@ function partitionApplyMerge(predicate, ruleYes, ruleNo) {
103
106
  }));
104
107
  };
105
108
  }
106
- exports.partitionApplyMerge = partitionApplyMerge;
107
109
  function forEach(operator) {
108
110
  return (tree) => {
109
111
  tree.visit((path, entry) => {
@@ -127,7 +129,6 @@ function forEach(operator) {
127
129
  });
128
130
  };
129
131
  }
130
- exports.forEach = forEach;
131
132
  function composeFileOperators(operators) {
132
133
  return (entry) => {
133
134
  let current = entry;
@@ -141,7 +142,6 @@ function composeFileOperators(operators) {
141
142
  return current;
142
143
  };
143
144
  }
144
- exports.composeFileOperators = composeFileOperators;
145
145
  function applyToSubtree(path, rules) {
146
146
  return (tree, context) => {
147
147
  const scoped = new scoped_1.ScopedTree(tree, path);
@@ -155,4 +155,3 @@ function applyToSubtree(path, rules) {
155
155
  }));
156
156
  };
157
157
  }
158
- exports.applyToSubtree = applyToSubtree;
package/src/rules/call.js CHANGED
@@ -7,7 +7,9 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.callRule = exports.callSource = exports.InvalidSourceResultException = exports.InvalidRuleResultException = void 0;
10
+ exports.InvalidSourceResultException = exports.InvalidRuleResultException = void 0;
11
+ exports.callSource = callSource;
12
+ exports.callRule = callRule;
11
13
  const core_1 = require("@angular-devkit/core");
12
14
  const rxjs_1 = require("rxjs");
13
15
  const interface_1 = require("../tree/interface");
@@ -63,7 +65,6 @@ function callSource(source, context) {
63
65
  throw new InvalidSourceResultException(result);
64
66
  });
65
67
  }
66
- exports.callSource = callSource;
67
68
  function callRule(rule, input, context) {
68
69
  if ((0, rxjs_1.isObservable)(input)) {
69
70
  return input.pipe((0, rxjs_1.mergeMap)((inputTree) => callRuleAsync(rule, inputTree, context)));
@@ -72,7 +73,6 @@ function callRule(rule, input, context) {
72
73
  return (0, rxjs_1.defer)(() => callRuleAsync(rule, input, context));
73
74
  }
74
75
  }
75
- exports.callRule = callRule;
76
76
  async function callRuleAsync(rule, tree, context) {
77
77
  let result = await rule(tree, context);
78
78
  while (typeof result === 'function') {
package/src/rules/move.js CHANGED
@@ -7,7 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.move = void 0;
10
+ exports.move = move;
11
11
  const core_1 = require("@angular-devkit/core");
12
12
  const base_1 = require("./base");
13
13
  function move(from, to) {
@@ -34,4 +34,3 @@ function move(from, to) {
34
34
  return tree;
35
35
  };
36
36
  }
37
- exports.move = move;
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  const host_tree_1 = require("../tree/host-tree");
11
12
  function generateStringOfLength(l) {
12
13
  return new Array(l)
@@ -37,4 +38,3 @@ function default_1(options) {
37
38
  return map;
38
39
  };
39
40
  }
40
- exports.default = default_1;
@@ -7,7 +7,8 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.schematic = exports.externalSchematic = void 0;
10
+ exports.externalSchematic = externalSchematic;
11
+ exports.schematic = schematic;
11
12
  const rxjs_1 = require("rxjs");
12
13
  const interface_1 = require("../tree/interface");
13
14
  const static_1 = require("../tree/static");
@@ -28,7 +29,6 @@ function externalSchematic(collectionName, schematicName, options, executionOpti
28
29
  }));
29
30
  };
30
31
  }
31
- exports.externalSchematic = externalSchematic;
32
32
  /**
33
33
  * Run a schematic from the same collection.
34
34
  *
@@ -47,4 +47,3 @@ function schematic(schematicName, options, executionOptions) {
47
47
  }));
48
48
  };
49
49
  }
50
- exports.schematic = schematic;
@@ -7,7 +7,14 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.applyTemplates = exports.template = exports.renameTemplateFiles = exports.pathTemplate = exports.applyPathTemplate = exports.contentTemplate = exports.applyContentTemplate = exports.InvalidPipeException = exports.UnknownPipeException = exports.OptionIsNotDefinedException = exports.TEMPLATE_FILENAME_RE = void 0;
10
+ exports.InvalidPipeException = exports.UnknownPipeException = exports.OptionIsNotDefinedException = exports.TEMPLATE_FILENAME_RE = void 0;
11
+ exports.applyContentTemplate = applyContentTemplate;
12
+ exports.contentTemplate = contentTemplate;
13
+ exports.applyPathTemplate = applyPathTemplate;
14
+ exports.pathTemplate = pathTemplate;
15
+ exports.renameTemplateFiles = renameTemplateFiles;
16
+ exports.template = template;
17
+ exports.applyTemplates = applyTemplates;
11
18
  const core_1 = require("@angular-devkit/core");
12
19
  const node_os_1 = require("node:os");
13
20
  const base_1 = require("./base");
@@ -52,11 +59,9 @@ function applyContentTemplate(options) {
52
59
  }
53
60
  };
54
61
  }
55
- exports.applyContentTemplate = applyContentTemplate;
56
62
  function contentTemplate(options) {
57
63
  return (0, base_1.forEach)(applyContentTemplate(options));
58
64
  }
59
- exports.contentTemplate = contentTemplate;
60
65
  function applyPathTemplate(data, options = {
61
66
  interpolationStart: '__',
62
67
  interpolationEnd: '__',
@@ -115,11 +120,9 @@ function applyPathTemplate(data, options = {
115
120
  return { path: (0, core_1.normalize)(path), content };
116
121
  };
117
122
  }
118
- exports.applyPathTemplate = applyPathTemplate;
119
123
  function pathTemplate(options) {
120
124
  return (0, base_1.forEach)(applyPathTemplate(options));
121
125
  }
122
- exports.pathTemplate = pathTemplate;
123
126
  /**
124
127
  * Remove every `.template` suffix from file names.
125
128
  */
@@ -136,7 +139,6 @@ function renameTemplateFiles() {
136
139
  }
137
140
  });
138
141
  }
139
- exports.renameTemplateFiles = renameTemplateFiles;
140
142
  function template(options) {
141
143
  return (0, base_1.chain)([
142
144
  contentTemplate(options),
@@ -146,7 +148,6 @@ function template(options) {
146
148
  pathTemplate(options),
147
149
  ]);
148
150
  }
149
- exports.template = template;
150
151
  function applyTemplates(options) {
151
152
  return (0, base_1.forEach)((0, base_1.when)((path) => path.endsWith('.template'), (0, base_1.composeFileOperators)([
152
153
  applyContentTemplate(options),
@@ -160,4 +161,3 @@ function applyTemplates(options) {
160
161
  },
161
162
  ])));
162
163
  }
163
- exports.applyTemplates = applyTemplates;
package/src/rules/url.js CHANGED
@@ -7,10 +7,9 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.url = void 0;
10
+ exports.url = url;
11
11
  const url_1 = require("url");
12
12
  function url(urlString) {
13
13
  const url = (0, url_1.parse)(urlString);
14
14
  return (context) => context.engine.createSourceFromUrl(url, context)(context);
15
15
  }
16
- exports.url = url;
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { virtualFs } from '@angular-devkit/core';
10
9
  import { Observable, Subject } from 'rxjs';
11
10
  import { HostSink } from './host';
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { Path, virtualFs } from '@angular-devkit/core';
10
9
  import { Observable } from 'rxjs';
11
10
  import { CreateFileAction } from '../tree/action';
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { Observable } from 'rxjs';
10
9
  import { Action, CreateFileAction, DeleteFileAction, OverwriteFileAction, RenameFileAction } from '../tree/action';
11
10
  import { Tree } from '../tree/interface';
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { BaseException, Path } from '@angular-devkit/core';
10
9
  export declare class UnknownActionException extends BaseException {
11
10
  constructor(action: Action);
@@ -7,7 +7,8 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.isContentAction = exports.ActionList = exports.UnknownActionException = void 0;
10
+ exports.ActionList = exports.UnknownActionException = void 0;
11
+ exports.isContentAction = isContentAction;
11
12
  const core_1 = require("@angular-devkit/core");
12
13
  class UnknownActionException extends core_1.BaseException {
13
14
  constructor(action) {
@@ -134,4 +135,3 @@ exports.ActionList = ActionList;
134
135
  function isContentAction(action) {
135
136
  return action.kind == 'c' || action.kind == 'o';
136
137
  }
137
- exports.isContentAction = isContentAction;
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { JsonValue } from '@angular-devkit/core';
10
9
  import { Action } from './action';
11
10
  import { DirEntry, FileEntry, FileVisitor, MergeStrategy, Tree, UpdateRecorder } from './interface';
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { Path } from '@angular-devkit/core';
10
9
  import { FileEntry } from './interface';
11
10
  export declare class SimpleFileEntry implements FileEntry {
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { JsonValue, Path, PathFragment, virtualFs } from '@angular-devkit/core';
10
9
  import { Action } from './action';
11
10
  import { DirEntry, FileEntry, FilePredicate, FileVisitor, MergeStrategy, Tree, UpdateRecorder } from './interface';
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { JsonValue, Path, PathFragment } from '@angular-devkit/core';
10
9
  import { Action } from './action';
11
10
  export declare enum MergeStrategy {
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { BaseException, JsonValue, Path, PathFragment } from '@angular-devkit/core';
10
9
  import { Action } from './action';
11
10
  import { DirEntry, MergeStrategy, Tree, UpdateRecorder } from './interface';
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { BaseException } from '@angular-devkit/core';
10
9
  import MagicString from 'magic-string';
11
10
  import { FileEntry, UpdateRecorder } from './interface';
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { JsonValue, Path, PathFragment } from '@angular-devkit/core';
10
9
  import { Action } from './action';
11
10
  import { DirEntry, FileEntry, FileVisitor, MergeStrategy, Tree, UpdateRecorder } from './interface';
@@ -7,23 +7,23 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.partition = exports.merge = exports.branch = exports.empty = void 0;
10
+ exports.empty = empty;
11
+ exports.branch = branch;
12
+ exports.merge = merge;
13
+ exports.partition = partition;
11
14
  const exception_1 = require("../exception/exception");
12
15
  const host_tree_1 = require("./host-tree");
13
16
  const interface_1 = require("./interface");
14
17
  function empty() {
15
18
  return new host_tree_1.HostTree();
16
19
  }
17
- exports.empty = empty;
18
20
  function branch(tree) {
19
21
  return tree.branch();
20
22
  }
21
- exports.branch = branch;
22
23
  function merge(tree, other, strategy = interface_1.MergeStrategy.Default) {
23
24
  tree.merge(other, strategy);
24
25
  return tree;
25
26
  }
26
- exports.merge = merge;
27
27
  function partition(tree, predicate) {
28
28
  if (tree instanceof host_tree_1.HostTree) {
29
29
  return [
@@ -35,4 +35,3 @@ function partition(tree, predicate) {
35
35
  throw new exception_1.SchematicsException('Tree type is not supported.');
36
36
  }
37
37
  }
38
- exports.partition = partition;
@@ -34,6 +34,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.UnknownPackageManagerException = void 0;
37
+ exports.default = default_1;
37
38
  const core_1 = require("@angular-devkit/core");
38
39
  const child_process_1 = require("child_process");
39
40
  const ora_1 = __importDefault(require("ora"));
@@ -165,4 +166,3 @@ function default_1(factoryOptions = {}) {
165
166
  });
166
167
  };
167
168
  }
168
- exports.default = default_1;
@@ -30,6 +30,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
+ exports.default = default_1;
33
34
  const core_1 = require("@angular-devkit/core");
34
35
  const child_process_1 = require("child_process");
35
36
  const path = __importStar(require("path"));
@@ -91,4 +92,3 @@ function default_1(factoryOptions = {}) {
91
92
  catch { }
92
93
  };
93
94
  }
94
- exports.default = default_1;
@@ -7,6 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = default_1;
10
11
  function default_1() {
11
12
  return (options, context) => {
12
13
  if (!options?.name) {
@@ -26,4 +27,3 @@ function default_1() {
26
27
  });
27
28
  };
28
29
  }
29
- exports.default = default_1;
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { Observable } from 'rxjs';
10
9
  import { Url } from 'url';
11
10
  import { CollectionDescription, EngineHost, RuleFactory, SchematicDescription, Source, TaskExecutor, TypedSchematicContext } from '../src';
@@ -5,7 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import { BaseException } from '@angular-devkit/core';
10
9
  import { Observable } from 'rxjs';
11
10
  import { Url } from 'url';
@@ -7,7 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.readJsonFile = void 0;
10
+ exports.readJsonFile = readJsonFile;
11
11
  const schematics_1 = require("@angular-devkit/schematics");
12
12
  const fs_1 = require("fs");
13
13
  const jsonc_parser_1 = require("jsonc-parser");
@@ -23,4 +23,3 @@ function readJsonFile(path) {
23
23
  }
24
24
  return content;
25
25
  }
26
- exports.readJsonFile = readJsonFile;
@@ -7,7 +7,8 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.validateOptionsWithSchema = exports.InvalidInputOptions = void 0;
10
+ exports.InvalidInputOptions = void 0;
11
+ exports.validateOptionsWithSchema = validateOptionsWithSchema;
11
12
  const core_1 = require("@angular-devkit/core");
12
13
  const rxjs_1 = require("rxjs");
13
14
  const operators_1 = require("rxjs/operators");
@@ -35,4 +36,3 @@ function validateOptionsWithSchema(registry) {
35
36
  return (0, rxjs_1.of)(options);
36
37
  };
37
38
  }
38
- exports.validateOptionsWithSchema = validateOptionsWithSchema;