@rxap/plugin-utilities 16.1.1-dev.1 → 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,18 @@
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
+
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)
13
+
14
+ ### Bug Fixes
15
+
16
+ - link dependent project on the fly ([ffb247e](https://gitlab.com/rxap/packages/commit/ffb247eada915b9e547fd63a323fcb9ded9f239c))
17
+
6
18
  ## [16.1.1-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.1-dev.0...@rxap/plugin-utilities@16.1.1-dev.1) (2024-03-05)
7
19
 
8
20
  **Note:** Version bump only for package @rxap/plugin-utilities
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.0 @rxap/node-utilities@^1.1.0 @rxap/workspace-utilities@^16.0.1 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.1",
2
+ "version": "16.1.1-dev.3",
3
3
  "name": "@rxap/plugin-utilities",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "dependencies": {
@@ -11,11 +11,11 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "@nx/devkit": "^16.5.0",
14
- "@rxap/generator-utilities": "^1.1.0",
15
- "@rxap/node-utilities": "^1.1.0",
16
- "@rxap/workspace-utilities": "^16.0.1",
14
+ "@rxap/generator-utilities": "^1.1.1-dev.0",
15
+ "@rxap/node-utilities": "^1.1.1-dev.1",
16
+ "@rxap/workspace-utilities": "^16.1.0-dev.0",
17
17
  "tslib": "2.6.2",
18
- "@rxap/utilities": "16.1.0-dev.6"
18
+ "@rxap/utilities": "16.1.0-dev.7"
19
19
  },
20
20
  "author": {
21
21
  "name": "Merzough Münker",
@@ -38,15 +38,15 @@
38
38
  "packageGroup": [
39
39
  {
40
40
  "package": "@rxap/generator-utilities",
41
- "version": "1.1.0"
41
+ "version": "1.1.1-dev.0"
42
42
  },
43
43
  {
44
44
  "package": "@rxap/node-utilities",
45
- "version": "1.1.0"
45
+ "version": "1.1.1-dev.1"
46
46
  },
47
47
  {
48
48
  "package": "@rxap/workspace-utilities",
49
- "version": "16.0.1"
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": "b07c3a57f82485e8f0680fd2ba4d06e635aa1b4f",
63
+ "gitHead": "ed07f30b85b21d1521b602abd6932bba6029001c",
64
64
  "main": "./src/index.js",
65
65
  "types": "./src/index.d.ts"
66
66
  }
package/src/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './lib/generators';
2
2
  export * from './lib/get-all-package-dependencies-for-project';
3
+ export * from './lib/get-dependent-projects-for-project';
3
4
  export * from './lib/get-direct-package-dependencies-for-project';
4
5
  export * from './lib/get-target-configuration-name-list';
5
6
  export * from './lib/guess-output-path';
package/src/index.js CHANGED
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  // region
5
5
  tslib_1.__exportStar(require("./lib/generators"), exports);
6
6
  tslib_1.__exportStar(require("./lib/get-all-package-dependencies-for-project"), exports);
7
+ tslib_1.__exportStar(require("./lib/get-dependent-projects-for-project"), exports);
7
8
  tslib_1.__exportStar(require("./lib/get-direct-package-dependencies-for-project"), exports);
8
9
  tslib_1.__exportStar(require("./lib/get-target-configuration-name-list"), exports);
9
10
  tslib_1.__exportStar(require("./lib/guess-output-path"), exports);
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/plugin/utilities/src/index.ts"],"names":[],"mappings":";;;AAAA,UAAU;AACV,2DAAiC;AACjC,yFAA+D;AAC/D,4FAAkE;AAClE,mFAAyD;AACzD,kEAAwC;AACxC,qEAA2C;AAC3C,6EAAmD;AACnD,mEAAyC;AACzC,0EAAgD;AAChD,+DAAqC;AACrC,wDAA8B;AAC9B,4EAAkD;AAClD,yDAA+B;AAC/B,YAAY"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/plugin/utilities/src/index.ts"],"names":[],"mappings":";;;AAAA,UAAU;AACV,2DAAiC;AACjC,yFAA+D;AAC/D,mFAAyD;AACzD,4FAAkE;AAClE,mFAAyD;AACzD,kEAAwC;AACxC,qEAA2C;AAC3C,6EAAmD;AACnD,mEAAyC;AACzC,0EAAgD;AAChD,+DAAqC;AACrC,wDAA8B;AAC9B,4EAAkD;AAClD,yDAA+B;AAC/B,YAAY"}
@@ -0,0 +1,2 @@
1
+ import { ExecutorContext } from '@nx/devkit';
2
+ export declare function GetDependentProjectsForProject(context: ExecutorContext, projectName?: string | undefined, resolved?: string[]): string[];
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDependentProjectsForProject = void 0;
4
+ function GetDependentProjectsForProject(context, projectName = context.projectName, resolved = []) {
5
+ const { projectGraph } = context;
6
+ if (!projectGraph) {
7
+ throw new Error('The projectGraph is undefined. Ensure the projectGraph is passed into the executor context.');
8
+ }
9
+ if (!projectName) {
10
+ throw new Error('The projectName is undefined. Ensure the projectName is passed into the executor context.');
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
+ }
16
+ // Get the list of project dependencies that are not already resolved
17
+ const projectDependencies = directDependencies
18
+ .map(dep => dep.target)
19
+ .filter(name => !name.startsWith('npm:'))
20
+ .filter(name => !resolved.includes(name));
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);
26
+ }
27
+ return resolved;
28
+ }
29
+ exports.GetDependentProjectsForProject = GetDependentProjectsForProject;
30
+ //# sourceMappingURL=get-dependent-projects-for-project.js.map
@@ -0,0 +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,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"}