@rxap/plugin-utilities 16.1.0-dev.14 → 16.1.0-dev.16
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.0-dev.16](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.0-dev.15...@rxap/plugin-utilities@16.1.0-dev.16) (2023-09-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/plugin-utilities
|
|
9
|
+
|
|
10
|
+
# [16.1.0-dev.15](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.0-dev.14...@rxap/plugin-utilities@16.1.0-dev.15) (2023-09-17)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- split GuessOutputPath function ([5fc44e1](https://gitlab.com/rxap/packages/commit/5fc44e1470ca16b542e0b45049bfd9a83b8baab8))
|
|
15
|
+
|
|
6
16
|
# [16.1.0-dev.14](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.0-dev.13...@rxap/plugin-utilities@16.1.0-dev.14) (2023-09-12)
|
|
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
|
|
20
|
+
yarn add @nx/devkit@^16.5.0 @rxap/generator-utilities@^1.1.0-dev.13 @rxap/node-utilities@^1.1.0-dev.9 @rxap/workspace-utilities@^0.1.0-dev.14 tslib@2.6.2
|
|
21
21
|
```
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.1.0-dev.
|
|
2
|
+
"version": "16.1.0-dev.16",
|
|
3
3
|
"name": "@rxap/plugin-utilities",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@nx/devkit": "^16.5.0",
|
|
13
|
-
"@rxap/generator-utilities": "
|
|
14
|
-
"@rxap/node-utilities": "
|
|
15
|
-
"@rxap/workspace-utilities": "
|
|
13
|
+
"@rxap/generator-utilities": "^1.1.0-dev.13",
|
|
14
|
+
"@rxap/node-utilities": "^1.1.0-dev.9",
|
|
15
|
+
"@rxap/workspace-utilities": "^0.1.0-dev.14",
|
|
16
16
|
"tslib": "2.6.2",
|
|
17
|
-
"@rxap/utilities": "16.0.0-dev.
|
|
17
|
+
"@rxap/utilities": "16.0.0-dev.19"
|
|
18
18
|
},
|
|
19
19
|
"author": {
|
|
20
20
|
"name": "Merzough Münker",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"packageGroup": [
|
|
37
37
|
{
|
|
38
38
|
"package": "@rxap/generator-utilities",
|
|
39
|
-
"version": "1.1.0-dev.
|
|
39
|
+
"version": "1.1.0-dev.13"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"package": "@rxap/node-utilities",
|
|
43
|
-
"version": "1.1.0-dev.
|
|
43
|
+
"version": "1.1.0-dev.9"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"package": "@rxap/workspace-utilities",
|
|
47
|
-
"version": "0.1.0-dev.
|
|
47
|
+
"version": "0.1.0-dev.14"
|
|
48
48
|
}
|
|
49
49
|
]
|
|
50
50
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"directory": "packages/plugin/utilities"
|
|
59
59
|
},
|
|
60
60
|
"type": "commonjs",
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "8d7aeb0f4a5ef9c6476b98d06c6f52f5d79d4a95",
|
|
62
62
|
"main": "./src/index.js",
|
|
63
63
|
"types": "./src/index.d.ts"
|
|
64
64
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
export declare function
|
|
1
|
+
import { ExecutorContext, TargetConfiguration } from '@nx/devkit';
|
|
2
|
+
export declare function GuessOutputPathFromContext(context: ExecutorContext, projectName?: string | undefined, configurationName?: string | undefined): string;
|
|
3
|
+
export declare function GuessOutputPath(projectRoot: string, buildTarget: TargetConfiguration, configurationName?: string): string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GuessOutputPath = void 0;
|
|
3
|
+
exports.GuessOutputPath = exports.GuessOutputPathFromContext = void 0;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const get_target_configuration_name_list_1 = require("./get-target-configuration-name-list");
|
|
6
6
|
const project_1 = require("./project");
|
|
7
7
|
const project_target_1 = require("./project-target");
|
|
8
|
-
function
|
|
8
|
+
function GuessOutputPathFromContext(context, projectName = context.projectName, configurationName = context.configurationName) {
|
|
9
9
|
if (!projectName) {
|
|
10
10
|
throw new Error('The projectName is undefined. Ensure the projectName is passed into the executor context.');
|
|
11
11
|
}
|
|
@@ -14,7 +14,11 @@ function GuessOutputPath(context, projectName = context.projectName) {
|
|
|
14
14
|
throw new Error(`Could not find target 'build' for project '${projectName}'`);
|
|
15
15
|
}
|
|
16
16
|
const projectRoot = (0, project_1.GetProjectRoot)(context, projectName);
|
|
17
|
-
|
|
17
|
+
return GuessOutputPath(projectRoot, buildTarget, configurationName);
|
|
18
|
+
}
|
|
19
|
+
exports.GuessOutputPathFromContext = GuessOutputPathFromContext;
|
|
20
|
+
function GuessOutputPath(projectRoot, buildTarget, configurationName) {
|
|
21
|
+
let outputPath = (0, get_target_configuration_name_list_1.GetTargetOptions)(buildTarget, configurationName)['outputPath'];
|
|
18
22
|
if (!outputPath) {
|
|
19
23
|
if (buildTarget.outputs && buildTarget.outputs.length) {
|
|
20
24
|
const [output] = buildTarget.outputs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guess-output-path.js","sourceRoot":"","sources":["../../../../../../packages/plugin/utilities/src/lib/guess-output-path.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"guess-output-path.js","sourceRoot":"","sources":["../../../../../../packages/plugin/utilities/src/lib/guess-output-path.ts"],"names":[],"mappings":";;;AAIA,+BAGc;AACd,6FAAwE;AACxE,uCAA2C;AAC3C,qDAAoD;AAGpD,SAAgB,0BAA0B,CACxC,OAAwB,EACxB,WAAW,GAAG,OAAO,CAAC,WAAW,EACjC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB;IAG7C,IAAI,CAAC,WAAW,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,2FAA2F,CAAC,CAAC;KAC9G;IAED,MAAM,WAAW,GAAG,IAAA,iCAAgB,EAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAEpE,IAAI,CAAC,WAAW,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,8CAA+C,WAAY,GAAG,CAAC,CAAC;KACjF;IAED,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAEzD,OAAO,eAAe,CAAC,WAAW,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC;AAEtE,CAAC;AApBD,gEAoBC;AAED,SAAgB,eAAe,CAAC,WAAmB,EAAE,WAAgC,EAAE,iBAA0B;IAE/G,IAAI,UAAU,GAAG,IAAA,qDAAgB,EAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,YAAY,CAAC,CAAC;IAEhF,IAAI,CAAC,UAAU,EAAE;QACf,IAAI,WAAW,CAAC,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,MAA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