@angular-devkit/schematics 19.1.3 → 19.1.4

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": "19.1.3",
3
+ "version": "19.1.4",
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": "19.1.3",
21
+ "@angular-devkit/core": "19.1.4",
22
22
  "jsonc-parser": "3.3.1",
23
23
  "magic-string": "0.30.17",
24
24
  "ora": "5.4.1",
@@ -31,12 +31,19 @@ class UnitTestTree extends src_1.DelegateTree {
31
31
  exports.UnitTestTree = UnitTestTree;
32
32
  class SchematicTestRunner {
33
33
  _collectionName;
34
- _engineHost = new tools_1.NodeModulesTestEngineHost();
35
- _engine = new src_1.SchematicEngine(this._engineHost);
34
+ _engineHost;
35
+ _engine;
36
36
  _collection;
37
37
  _logger;
38
38
  constructor(_collectionName, collectionPath) {
39
39
  this._collectionName = _collectionName;
40
+ this._engineHost = new tools_1.NodeModulesTestEngineHost([
41
+ // Leverage the specified collection path as an additional base for resolving other
42
+ // collections by name. This is useful in e.g. pnpm workspaces where `@angular-devkit/schematics`
43
+ // doesn't necessarily have access to e.g. `@schematics/angular`.
44
+ collectionPath,
45
+ ]);
46
+ this._engine = new src_1.SchematicEngine(this._engineHost);
40
47
  this._engineHost.registerCollection(_collectionName, collectionPath);
41
48
  this._logger = new core_1.logging.Logger('test');
42
49
  const registry = new core_1.schema.CoreSchemaRegistry(src_1.formats.standardFormats);