@nx/dotnet 22.1.0-beta.2 → 22.1.0-beta.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.
Binary file
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"create-dependencies.d.ts","sourceRoot":"","sources":["../../src/plugins/create-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAInB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAkBrD,eAAO,MAAM,kBAAkB,EAAE,kBAAkB,CACjD,mBAAmB,CA0CpB,CAAC"}
1
+ {"version":3,"file":"create-dependencies.d.ts","sourceRoot":"","sources":["../../src/plugins/create-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAGnB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAOrD,eAAO,MAAM,kBAAkB,EAAE,kBAAkB,CACjD,mBAAmB,CA4CpB,CAAC"}
@@ -3,18 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createDependencies = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const analyzer_client_1 = require("../analyzer/analyzer-client");
6
- function createProjectRootMappings(projects) {
7
- const rootMap = {};
8
- for (const [, project] of Object.entries(projects)) {
9
- if (project.root && project.name) {
10
- rootMap[project.root] = project.name;
11
- }
12
- }
13
- return rootMap;
14
- }
6
+ const internal_1 = require("@nx/devkit/internal");
15
7
  const createDependencies = async (_, ctx) => {
16
8
  const dependencies = [];
17
- const rootMap = createProjectRootMappings(ctx.projects);
9
+ const rootMap = (0, internal_1.createProjectRootMappingsFromProjectConfigurations)(ctx.projects);
18
10
  // Read the cached analysis result populated by createNodes
19
11
  // createNodes always runs before createDependencies, so the cache should be populated
20
12
  const cachedResult = (0, analyzer_client_1.readCachedAnalysisResult)();
@@ -26,12 +18,12 @@ const createDependencies = async (_, ctx) => {
26
18
  // The analyzer returns: { [projectRoot]: [referencedProjectRoot1, referencedProjectRoot2, ...] }
27
19
  // We need to convert this to Nx dependencies
28
20
  for (const [sourceRoot, referencedRoots] of Object.entries(referencesByRoot)) {
29
- const sourceName = rootMap[sourceRoot];
21
+ const sourceName = rootMap.get(sourceRoot);
30
22
  if (!sourceName) {
31
23
  continue;
32
24
  }
33
25
  for (const targetRoot of referencedRoots.refs) {
34
- const targetName = rootMap[targetRoot];
26
+ const targetName = rootMap.get(targetRoot);
35
27
  if (targetName) {
36
28
  dependencies.push({
37
29
  source: sourceName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/dotnet",
3
- "version": "22.1.0-beta.2",
3
+ "version": "22.1.0-beta.3",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for .NET containing graph support for working with .NET projects in an Nx workspace.",
6
6
  "keywords": [
@@ -48,7 +48,7 @@
48
48
  "!dist/tsconfig.lib.tsbuildinfo"
49
49
  ],
50
50
  "dependencies": {
51
- "@nx/devkit": "22.1.0-beta.2",
51
+ "@nx/devkit": "22.1.0-beta.3",
52
52
  "tslib": "^2.3.0",
53
53
  "ignore": "^7.0.5"
54
54
  },
@@ -57,7 +57,7 @@
57
57
  "@types/node": "^20.19.10",
58
58
  "jest": "^30.0.2",
59
59
  "memfs": "^4.9.2",
60
- "nx": "22.1.0-beta.2",
60
+ "nx": "22.1.0-beta.3",
61
61
  "ts-jest": "^29.4.0",
62
62
  "typescript": "~5.9.2"
63
63
  },