@rxap/plugin-utilities 16.1.1-dev.2 → 16.1.1-dev.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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [16.1.1-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.1-dev.2...@rxap/plugin-utilities@16.1.1-dev.3) (2024-03-14)
7
+
8
+ ### Bug Fixes
9
+
10
+ - resolve project dependencies recursive ([6ea3f34](https://gitlab.com/rxap/packages/commit/6ea3f34a1d90f2d1a8a1379c6988889b3cb8ee9b))
11
+
6
12
  ## [16.1.1-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.1-dev.1...@rxap/plugin-utilities@16.1.1-dev.2) (2024-03-11)
7
13
 
8
14
  ### Bug Fixes
package/README.md CHANGED
@@ -17,5 +17,5 @@ yarn add @rxap/plugin-utilities
17
17
  ```
18
18
  **Install peer dependencies:**
19
19
  ```bash
20
- yarn add @nx/devkit@^16.5.0 @rxap/generator-utilities@^1.1.1-dev.0 @rxap/node-utilities@^1.1.1-dev.1 @rxap/workspace-utilities@^16.0.2-dev.0 tslib@2.6.2
20
+ yarn add @nx/devkit@^16.5.0 @rxap/generator-utilities@^1.1.1-dev.0 @rxap/node-utilities@^1.1.1-dev.1 @rxap/workspace-utilities@^16.1.0-dev.0 tslib@2.6.2
21
21
  ```
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.1.1-dev.2",
2
+ "version": "16.1.1-dev.3",
3
3
  "name": "@rxap/plugin-utilities",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "dependencies": {
@@ -13,7 +13,7 @@
13
13
  "@nx/devkit": "^16.5.0",
14
14
  "@rxap/generator-utilities": "^1.1.1-dev.0",
15
15
  "@rxap/node-utilities": "^1.1.1-dev.1",
16
- "@rxap/workspace-utilities": "^16.0.2-dev.0",
16
+ "@rxap/workspace-utilities": "^16.1.0-dev.0",
17
17
  "tslib": "2.6.2",
18
18
  "@rxap/utilities": "16.1.0-dev.7"
19
19
  },
@@ -46,7 +46,7 @@
46
46
  },
47
47
  {
48
48
  "package": "@rxap/workspace-utilities",
49
- "version": "16.0.2-dev.0"
49
+ "version": "16.1.0-dev.0"
50
50
  }
51
51
  ]
52
52
  },
@@ -60,7 +60,7 @@
60
60
  "directory": "packages/plugin/utilities"
61
61
  },
62
62
  "type": "commonjs",
63
- "gitHead": "c3694cfb8d782e855262a1498a0e0618bfd7d1cd",
63
+ "gitHead": "ed07f30b85b21d1521b602abd6932bba6029001c",
64
64
  "main": "./src/index.js",
65
65
  "types": "./src/index.d.ts"
66
66
  }
@@ -9,16 +9,22 @@ function GetDependentProjectsForProject(context, projectName = context.projectNa
9
9
  if (!projectName) {
10
10
  throw new Error('The projectName is undefined. Ensure the projectName is passed into the executor context.');
11
11
  }
12
+ const directDependencies = projectGraph.dependencies[projectName];
13
+ if (!directDependencies) {
14
+ throw new Error(`The project "${projectName}" does not exists in the project graph.`);
15
+ }
12
16
  // Get the list of project dependencies that are not already resolved
13
- const newDependentProjects = projectGraph.dependencies[projectName]
17
+ const projectDependencies = directDependencies
14
18
  .map(dep => dep.target)
15
19
  .filter(name => !name.startsWith('npm:'))
16
20
  .filter(name => !resolved.includes(name));
17
- let subDependentProjects = [];
18
- for (const project of newDependentProjects) {
19
- subDependentProjects = [...subDependentProjects, ...GetDependentProjectsForProject(context, project, [...resolved, ...newDependentProjects])];
21
+ // Add the current direct dependencies to the list of resolved dependencies
22
+ resolved = [...resolved, ...projectDependencies];
23
+ for (const project of projectDependencies) {
24
+ // Proceed recursively with the extended list of resolved dependencies
25
+ resolved = GetDependentProjectsForProject(context, project, resolved);
20
26
  }
21
- return [...newDependentProjects, ...resolved];
27
+ return resolved;
22
28
  }
23
29
  exports.GetDependentProjectsForProject = GetDependentProjectsForProject;
24
30
  //# sourceMappingURL=get-dependent-projects-for-project.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-dependent-projects-for-project.js","sourceRoot":"","sources":["../../../../../../packages/plugin/utilities/src/lib/get-dependent-projects-for-project.ts"],"names":[],"mappings":";;;AAEA,SAAgB,8BAA8B,CAC5C,OAAwB,EACxB,WAAW,GAAG,OAAO,CAAC,WAAW,EACjC,WAAqB,EAAE;IAGvB,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IAEjC,IAAI,CAAC,YAAY,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,6FAA6F,CAAC,CAAC;KAChH;IAED,IAAI,CAAC,WAAW,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,2FAA2F,CAAC,CAAC;KAC9G;IAED,qEAAqE;IACrE,MAAM,oBAAoB,GAAG,YAAY,CAAC,YAAY,CAAC,WAAW,CAAC;SAChE,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC;SACtB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;SACxC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAE5C,IAAI,oBAAoB,GAAa,EAAE,CAAC;IACxC,KAAK,MAAM,OAAO,IAAI,oBAAoB,EAAE;QAC1C,oBAAoB,GAAG,CAAE,GAAG,oBAAoB,EAAE,GAAG,8BAA8B,CAAC,OAAO,EAAE,OAAO,EAAE,CAAE,GAAG,QAAQ,EAAE,GAAG,oBAAoB,CAAE,CAAC,CAAE,CAAC;KACnJ;IAED,OAAO,CAAE,GAAG,oBAAoB,EAAE,GAAG,QAAQ,CAAE,CAAC;AAElD,CAAC;AA7BD,wEA6BC"}
1
+ {"version":3,"file":"get-dependent-projects-for-project.js","sourceRoot":"","sources":["../../../../../../packages/plugin/utilities/src/lib/get-dependent-projects-for-project.ts"],"names":[],"mappings":";;;AAEA,SAAgB,8BAA8B,CAC5C,OAAwB,EACxB,WAAW,GAAG,OAAO,CAAC,WAAW,EACjC,WAAqB,EAAE;IAGvB,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IAEjC,IAAI,CAAC,YAAY,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,6FAA6F,CAAC,CAAC;KAChH;IAED,IAAI,CAAC,WAAW,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,2FAA2F,CAAC,CAAC;KAC9G;IAED,MAAM,kBAAkB,GAAG,YAAY,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAElE,IAAI,CAAC,kBAAkB,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,gBAAiB,WAAY,yCAAyC,CAAC,CAAC;KACzF;IAED,qEAAqE;IACrE,MAAM,mBAAmB,GAAG,kBAAkB;SAC3C,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC;SACtB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;SACxC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAE5C,2EAA2E;IAC3E,QAAQ,GAAG,CAAE,GAAG,QAAQ,EAAE,GAAG,mBAAmB,CAAE,CAAC;IACnD,KAAK,MAAM,OAAO,IAAI,mBAAmB,EAAE;QACzC,sEAAsE;QACtE,QAAQ,GAAG,8BAA8B,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;KACvE;IAED,OAAO,QAAQ,CAAC;AAElB,CAAC;AArCD,wEAqCC"}