@sap-ux/create 0.14.65 → 0.15.1
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/dist/cli/add/deploy-config.js +7 -3
- package/package.json +16 -15
|
@@ -8,6 +8,8 @@ const validation_1 = require("../../validation");
|
|
|
8
8
|
const abap_deploy_config_inquirer_1 = require("@sap-ux/abap-deploy-config-inquirer");
|
|
9
9
|
const prompts_1 = require("prompts");
|
|
10
10
|
const common_1 = require("../../common");
|
|
11
|
+
const adp_tooling_1 = require("@sap-ux/adp-tooling");
|
|
12
|
+
const axios_extension_1 = require("@sap-ux/axios-extension");
|
|
11
13
|
/**
|
|
12
14
|
* Add the "add deploy config" command to a passed command.
|
|
13
15
|
*
|
|
@@ -80,8 +82,10 @@ async function addDeployConfig(basePath, target, simulate = false, baseFile, dep
|
|
|
80
82
|
else if (target === 'abap') {
|
|
81
83
|
logger.debug(`Called add deploy-config for path '${basePath}', simulate is '${simulate}'`);
|
|
82
84
|
await (0, validation_1.validateBasePath)(basePath);
|
|
85
|
+
const adpProjectType = await (0, adp_tooling_1.getExistingAdpProjectType)(basePath);
|
|
86
|
+
const hideIfOnPremise = isAdp && adpProjectType === axios_extension_1.AdaptationProjectType.ON_PREMISE;
|
|
83
87
|
const promptOptions = {
|
|
84
|
-
ui5AbapRepo: { hideIfOnPremise
|
|
88
|
+
ui5AbapRepo: { hideIfOnPremise },
|
|
85
89
|
packageAutocomplete: {
|
|
86
90
|
useAutocomplete: true,
|
|
87
91
|
additionalValidation: {
|
|
@@ -95,8 +99,8 @@ async function addDeployConfig(basePath, target, simulate = false, baseFile, dep
|
|
|
95
99
|
shouldValidatePackageForStartingPrefix: isAdp
|
|
96
100
|
}
|
|
97
101
|
},
|
|
98
|
-
transportInputChoice: { hideIfOnPremise
|
|
99
|
-
|
|
102
|
+
transportInputChoice: { hideIfOnPremise },
|
|
103
|
+
adpProjectType
|
|
100
104
|
};
|
|
101
105
|
const { prompts: abapPrompts, answers: abapAnswers } = await (0, abap_deploy_config_inquirer_1.getPrompts)(promptOptions, logger, false);
|
|
102
106
|
const answers = (0, abap_deploy_config_inquirer_1.reconcileAnswers)(await (0, common_1.promptYUIQuestions)(abapPrompts, false), abapAnswers);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/create",
|
|
3
3
|
"description": "SAP Fiori tools module to add or remove features",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.15.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -31,20 +31,21 @@
|
|
|
31
31
|
"mem-fs": "2.1.0",
|
|
32
32
|
"mem-fs-editor": "9.4.0",
|
|
33
33
|
"prompts": "2.4.2",
|
|
34
|
-
"@sap-ux/abap-deploy-config-inquirer": "1.
|
|
35
|
-
"@sap-ux/abap-deploy-config-writer": "0.2.
|
|
36
|
-
"@sap-ux/adp-tooling": "0.18.
|
|
37
|
-
"@sap-ux/app-config-writer": "0.6.
|
|
38
|
-
"@sap-ux/cap-config-writer": "0.12.
|
|
34
|
+
"@sap-ux/abap-deploy-config-inquirer": "1.7.1",
|
|
35
|
+
"@sap-ux/abap-deploy-config-writer": "0.2.74",
|
|
36
|
+
"@sap-ux/adp-tooling": "0.18.65",
|
|
37
|
+
"@sap-ux/app-config-writer": "0.6.100",
|
|
38
|
+
"@sap-ux/cap-config-writer": "0.12.65",
|
|
39
39
|
"@sap-ux/logger": "0.8.1",
|
|
40
|
-
"@sap-ux/mockserver-config-writer": "0.9.
|
|
41
|
-
"@sap-ux/odata-service-writer": "0.29.
|
|
42
|
-
"@sap-ux/preview-middleware": "0.23.
|
|
43
|
-
"@sap-ux/project-access": "1.35.
|
|
44
|
-
"@sap-ux/system-access": "0.6.
|
|
45
|
-
"@sap-ux/ui5-config": "0.29.
|
|
46
|
-
"@sap-ux/flp-config-inquirer": "0.4.
|
|
47
|
-
"@sap-ux/nodejs-utils": "0.2.
|
|
40
|
+
"@sap-ux/mockserver-config-writer": "0.9.51",
|
|
41
|
+
"@sap-ux/odata-service-writer": "0.29.19",
|
|
42
|
+
"@sap-ux/preview-middleware": "0.23.122",
|
|
43
|
+
"@sap-ux/project-access": "1.35.4",
|
|
44
|
+
"@sap-ux/system-access": "0.6.53",
|
|
45
|
+
"@sap-ux/ui5-config": "0.29.17",
|
|
46
|
+
"@sap-ux/flp-config-inquirer": "0.4.124",
|
|
47
|
+
"@sap-ux/nodejs-utils": "0.2.15",
|
|
48
|
+
"@sap-ux/axios-extension": "1.25.13"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@types/diff": "5.0.9",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"@types/mem-fs": "1.1.2",
|
|
53
54
|
"@types/mem-fs-editor": "7.0.1",
|
|
54
55
|
"@types/prompts": "2.4.4",
|
|
55
|
-
"@sap-ux/inquirer-common": "0.11.
|
|
56
|
+
"@sap-ux/inquirer-common": "0.11.7",
|
|
56
57
|
"@sap-ux/store": "1.5.6"
|
|
57
58
|
},
|
|
58
59
|
"scripts": {
|