@sap-ux/abap-deploy-config-sub-generator 0.1.71 → 0.1.72
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/generators/app/index.d.ts +1 -0
- package/generators/app/index.js +11 -9
- package/package.json +2 -2
package/generators/app/index.js
CHANGED
|
@@ -32,6 +32,7 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
32
32
|
configExists;
|
|
33
33
|
answers;
|
|
34
34
|
projectType;
|
|
35
|
+
isAdp;
|
|
35
36
|
/**
|
|
36
37
|
* Constructor for the ABAP deploy config generator.
|
|
37
38
|
*
|
|
@@ -135,24 +136,24 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
135
136
|
}
|
|
136
137
|
if (!this.launchDeployConfigAsSubGenerator) {
|
|
137
138
|
const appType = await (0, project_access_1.getAppType)(this.destinationPath());
|
|
138
|
-
|
|
139
|
+
this.isAdp = appType === 'Fiori Adaptation';
|
|
139
140
|
const packageAdditionalValidation = {
|
|
140
|
-
shouldValidatePackageForStartingPrefix: isAdp,
|
|
141
|
-
shouldValidatePackageType: isAdp,
|
|
142
|
-
shouldValidateFormatAndSpecialCharacters: isAdp
|
|
141
|
+
shouldValidatePackageForStartingPrefix: this.isAdp,
|
|
142
|
+
shouldValidatePackageType: this.isAdp,
|
|
143
|
+
shouldValidateFormatAndSpecialCharacters: this.isAdp
|
|
143
144
|
};
|
|
144
145
|
const promptOptions = {
|
|
145
|
-
ui5AbapRepo: { hideIfOnPremise: isAdp },
|
|
146
|
-
transportInputChoice: { hideIfOnPremise: isAdp },
|
|
146
|
+
ui5AbapRepo: { hideIfOnPremise: this.isAdp },
|
|
147
|
+
transportInputChoice: { hideIfOnPremise: this.isAdp },
|
|
147
148
|
packageAutocomplete: {
|
|
148
149
|
additionalValidation: packageAdditionalValidation
|
|
149
150
|
},
|
|
150
151
|
packageManual: {
|
|
151
152
|
additionalValidation: packageAdditionalValidation
|
|
152
153
|
},
|
|
153
|
-
targetSystem: { additionalValidation: { shouldRestrictDifferentSystemType: isAdp } }
|
|
154
|
+
targetSystem: { additionalValidation: { shouldRestrictDifferentSystemType: this.isAdp } }
|
|
154
155
|
};
|
|
155
|
-
const indexGenerationAllowed = this.indexGenerationAllowed && !isAdp;
|
|
156
|
+
const indexGenerationAllowed = this.indexGenerationAllowed && !this.isAdp;
|
|
156
157
|
const { prompts: abapDeployConfigPrompts, answers: abapAnswers = {} } = await (0, questions_1.getAbapQuestions)({
|
|
157
158
|
appRootPath: this.destinationRoot(),
|
|
158
159
|
connectedSystem: this.options.connectedSystem,
|
|
@@ -257,7 +258,8 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
257
258
|
lrep: namespace
|
|
258
259
|
}, {
|
|
259
260
|
baseFile: this.options.base,
|
|
260
|
-
deployFile: this.options.config
|
|
261
|
+
deployFile: this.options.config,
|
|
262
|
+
addBuildToUndeployScript: !this.isAdp
|
|
261
263
|
}, this.fs);
|
|
262
264
|
}
|
|
263
265
|
install() {
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
7
7
|
"directory": "packages/abap-deploy-config-sub-generator"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.72",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "generators/app/index.js",
|
|
12
12
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"i18next": "25.3.0",
|
|
23
23
|
"@sap-devx/yeoman-ui-types": "1.14.4",
|
|
24
24
|
"@sap-ux/abap-deploy-config-inquirer": "1.6.23",
|
|
25
|
-
"@sap-ux/abap-deploy-config-writer": "0.2.
|
|
25
|
+
"@sap-ux/abap-deploy-config-writer": "0.2.18",
|
|
26
26
|
"@sap-ux/btp-utils": "1.1.3",
|
|
27
27
|
"@sap-ux/deploy-config-generator-shared": "0.1.37",
|
|
28
28
|
"@sap-ux/feature-toggle": "0.3.1",
|