@sap-ux/deploy-config-sub-generator 0.0.11 → 0.0.12
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.
|
@@ -14,9 +14,9 @@ export default class extends DeploymentGenerator implements DeployConfigGenerato
|
|
|
14
14
|
readonly appWizard: AppWizard;
|
|
15
15
|
readonly prompts: Prompts;
|
|
16
16
|
readonly genNamespace: string;
|
|
17
|
-
readonly launchDeployConfigAsSubGenerator: boolean;
|
|
18
17
|
readonly launchStandaloneFromYui: boolean;
|
|
19
18
|
readonly apiHubConfig: ApiHubConfig;
|
|
19
|
+
launchDeployConfigAsSubGenerator: boolean;
|
|
20
20
|
extensionPromptOpts?: Record<string, CommonPromptOptions>;
|
|
21
21
|
vscode: VSCodeInstance;
|
|
22
22
|
cfDestination: string;
|
package/generators/app/index.js
CHANGED
|
@@ -21,9 +21,9 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
21
21
|
appWizard;
|
|
22
22
|
prompts;
|
|
23
23
|
genNamespace;
|
|
24
|
-
launchDeployConfigAsSubGenerator;
|
|
25
24
|
launchStandaloneFromYui;
|
|
26
25
|
apiHubConfig;
|
|
26
|
+
launchDeployConfigAsSubGenerator;
|
|
27
27
|
extensionPromptOpts;
|
|
28
28
|
vscode;
|
|
29
29
|
cfDestination;
|
|
@@ -91,6 +91,12 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
|
|
|
91
91
|
if (this.isCap && !this.mtaPath) {
|
|
92
92
|
this.target = deploy_config_generator_shared_1.TargetName.CF; // when CAP project and no mta.yaml, default to Cloud Foundry
|
|
93
93
|
}
|
|
94
|
+
const appType = await (0, project_access_1.getAppType)(this.options.appRootPath);
|
|
95
|
+
const isAdp = appType === 'Fiori Adaptation';
|
|
96
|
+
if (isAdp) {
|
|
97
|
+
this.target = deploy_config_generator_shared_1.TargetName.ABAP; // Adp projects support only ABAP deployment
|
|
98
|
+
this.launchDeployConfigAsSubGenerator = false;
|
|
99
|
+
}
|
|
94
100
|
this.options.projectRoot = capRoot ?? (this.mtaPath && (0, path_1.dirname)(this.mtaPath)) ?? this.options.appRootPath;
|
|
95
101
|
({ backendConfig: this.backendConfig, isLibrary: this.isLibrary } = await (0, utils_2.getBackendConfig)(this.fs, this.options, this.launchStandaloneFromYui, this.options.appRootPath));
|
|
96
102
|
const { destinationName, servicePath } = await (0, utils_2.getApiHubOptions)(this.fs, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/deploy-config-sub-generator",
|
|
3
3
|
"description": "Main generator for configuring ABAP or Cloud Foundry deployment configuration",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.12",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@sap-ux/axios-extension": "1.19.1",
|
|
29
29
|
"@sap-ux/btp-utils": "1.0.2",
|
|
30
30
|
"@sap-ux/cf-deploy-config-sub-generator": "0.1.30",
|
|
31
|
-
"@sap-ux/abap-deploy-config-sub-generator": "0.0.
|
|
31
|
+
"@sap-ux/abap-deploy-config-sub-generator": "0.0.54",
|
|
32
32
|
"@sap-ux/deploy-config-generator-shared": "0.0.39",
|
|
33
33
|
"@sap-ux/fiori-generator-shared": "0.9.11",
|
|
34
34
|
"@sap-ux/i18n": "0.2.3",
|