@sap-ux/deploy-config-sub-generator 0.0.10 → 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;
@@ -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.10",
4
+ "version": "0.0.12",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -27,15 +27,15 @@
27
27
  "yeoman-generator": "5.10.0",
28
28
  "@sap-ux/axios-extension": "1.19.1",
29
29
  "@sap-ux/btp-utils": "1.0.2",
30
- "@sap-ux/cf-deploy-config-sub-generator": "0.1.29",
31
- "@sap-ux/abap-deploy-config-sub-generator": "0.0.52",
32
- "@sap-ux/deploy-config-generator-shared": "0.0.38",
33
- "@sap-ux/fiori-generator-shared": "0.9.10",
30
+ "@sap-ux/cf-deploy-config-sub-generator": "0.1.30",
31
+ "@sap-ux/abap-deploy-config-sub-generator": "0.0.54",
32
+ "@sap-ux/deploy-config-generator-shared": "0.0.39",
33
+ "@sap-ux/fiori-generator-shared": "0.9.11",
34
34
  "@sap-ux/i18n": "0.2.3",
35
- "@sap-ux/inquirer-common": "0.6.30",
35
+ "@sap-ux/inquirer-common": "0.6.31",
36
36
  "@sap-ux/nodejs-utils": "0.1.8",
37
- "@sap-ux/odata-service-inquirer": "2.2.22",
38
- "@sap-ux/project-access": "1.29.17",
37
+ "@sap-ux/odata-service-inquirer": "2.2.23",
38
+ "@sap-ux/project-access": "1.29.18",
39
39
  "@sap-ux/store": "1.0.0",
40
40
  "@sap-ux/ui5-config": "0.26.5"
41
41
  },
@@ -57,8 +57,8 @@
57
57
  "typescript": "5.3.3",
58
58
  "unionfs": "4.4.0",
59
59
  "yeoman-test": "6.3.0",
60
- "@sap-ux/cf-deploy-config-inquirer": "0.2.20",
61
- "@sap-ux/cf-deploy-config-writer": "0.1.23",
60
+ "@sap-ux/cf-deploy-config-inquirer": "0.2.21",
61
+ "@sap-ux/cf-deploy-config-writer": "0.1.24",
62
62
  "@sap-ux/logger": "0.6.0"
63
63
  },
64
64
  "engines": {