@angular-devkit/schematics 20.0.0-next.3 → 20.0.0-next.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": "20.0.0-next.3",
3
+ "version": "20.0.0-next.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": "20.0.0-next.3",
21
+ "@angular-devkit/core": "20.0.0-next.4",
22
22
  "jsonc-parser": "3.3.1",
23
23
  "magic-string": "0.30.17",
24
24
  "ora": "5.4.1",
@@ -39,17 +39,13 @@ class NodeModulesEngineHost extends file_system_engine_host_base_1.FileSystemEng
39
39
  references.add(requester);
40
40
  }
41
41
  }
42
- const relativeBase = requester ? (0, node_path_1.dirname)(requester) : process.cwd();
43
42
  let collectionPath = undefined;
44
- if (name.startsWith('.')) {
45
- name = (0, node_path_1.resolve)(relativeBase, name);
46
- }
47
43
  const resolveOptions = {
48
44
  paths: requester ? [(0, node_path_1.dirname)(requester), ...(this.paths || [])] : this.paths,
49
45
  };
50
46
  // Try to resolve as a package
51
47
  try {
52
- const packageJsonPath = require.resolve((0, node_path_1.join)(name, 'package.json'), resolveOptions);
48
+ const packageJsonPath = require.resolve(`${name}/package.json`, resolveOptions);
53
49
  const { schematics } = require(packageJsonPath);
54
50
  if (!schematics || typeof schematics !== 'string') {
55
51
  throw new NodePackageDoesNotSupportSchematics(name);