@rxap/plugin-utilities 16.1.1-dev.0 → 16.1.1-dev.2

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,16 @@
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.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
+
8
+ ### Bug Fixes
9
+
10
+ - link dependent project on the fly ([ffb247e](https://gitlab.com/rxap/packages/commit/ffb247eada915b9e547fd63a323fcb9ded9f239c))
11
+
12
+ ## [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)
13
+
14
+ **Note:** Version bump only for package @rxap/plugin-utilities
15
+
6
16
  ## [16.1.1-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.0...@rxap/plugin-utilities@16.1.1-dev.0) (2024-02-28)
7
17
 
8
18
  ### 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.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.0.2-dev.0 tslib@2.6.2
21
21
  ```
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.1.1-dev.0",
2
+ "version": "16.1.1-dev.2",
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.0.2-dev.0",
17
17
  "tslib": "2.6.2",
18
- "@rxap/utilities": "16.1.0-dev.3"
18
+ "@rxap/utilities": "16.1.0-dev.7"
19
19
  },
20
20
  "author": {
21
21
  "name": "Merzough Münker",
@@ -31,21 +31,22 @@
31
31
  "plugin",
32
32
  "plugin-utilities",
33
33
  "rxap",
34
+ "scope:utilities",
34
35
  "utilities"
35
36
  ],
36
37
  "nx-migrations": {
37
38
  "packageGroup": [
38
39
  {
39
40
  "package": "@rxap/generator-utilities",
40
- "version": "1.1.0"
41
+ "version": "1.1.1-dev.0"
41
42
  },
42
43
  {
43
44
  "package": "@rxap/node-utilities",
44
- "version": "1.1.0"
45
+ "version": "1.1.1-dev.1"
45
46
  },
46
47
  {
47
48
  "package": "@rxap/workspace-utilities",
48
- "version": "16.0.1"
49
+ "version": "16.0.2-dev.0"
49
50
  }
50
51
  ]
51
52
  },
@@ -59,7 +60,7 @@
59
60
  "directory": "packages/plugin/utilities"
60
61
  },
61
62
  "type": "commonjs",
62
- "gitHead": "521407940b1ca095124b5699b7341f391ccd681f",
63
+ "gitHead": "c3694cfb8d782e855262a1498a0e0618bfd7d1cd",
63
64
  "main": "./src/index.js",
64
65
  "types": "./src/index.d.ts"
65
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,24 @@
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
+ // Get the list of project dependencies that are not already resolved
13
+ const newDependentProjects = projectGraph.dependencies[projectName]
14
+ .map(dep => dep.target)
15
+ .filter(name => !name.startsWith('npm:'))
16
+ .filter(name => !resolved.includes(name));
17
+ let subDependentProjects = [];
18
+ for (const project of newDependentProjects) {
19
+ subDependentProjects = [...subDependentProjects, ...GetDependentProjectsForProject(context, project, [...resolved, ...newDependentProjects])];
20
+ }
21
+ return [...newDependentProjects, ...resolved];
22
+ }
23
+ exports.GetDependentProjectsForProject = GetDependentProjectsForProject;
24
+ //# 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,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"}