@sap-ux/cf-deploy-config-sub-generator 0.1.42 → 0.1.43

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.
@@ -19,6 +19,7 @@ const project_access_1 = require("@sap-ux/project-access");
19
19
  const telemetryEvents_1 = require("../telemetryEvents");
20
20
  const questions_1 = require("./questions");
21
21
  Object.defineProperty(exports, "getCFQuestions", { enumerable: true, get: function () { return questions_1.getCFQuestions; } });
22
+ const cf_deploy_config_inquirer_1 = require("@sap-ux/cf-deploy-config-inquirer");
22
23
  /**
23
24
  * Cloud Foundry deployment configuration generator.
24
25
  */
@@ -206,8 +207,9 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
206
207
  async _reconcileAnswersWithOptions() {
207
208
  const destinationName = this.destinationName || this.answers.destinationName;
208
209
  const destination = await (0, deploy_config_generator_shared_1.getDestination)(destinationName);
209
- const addManagedAppRouter = this.options.addManagedAppRouter ?? this.answers.addManagedAppRouter ?? false;
210
210
  const isDestinationFullUrl = this.options.isFullUrlDest ?? (destination && (0, btp_utils_1.isFullUrlDestination)(destination)) ?? false;
211
+ const addManagedAppRouter = this.options.addManagedAppRouter ?? this.answers.routerType === cf_deploy_config_inquirer_1.RouterModuleType.Managed;
212
+ const addAppFrontendRouter = this.options.addAppFrontendRouter ?? this.answers.routerType === cf_deploy_config_inquirer_1.RouterModuleType.AppFront;
211
213
  const destinationAuthentication = this.options.destinationAuthType ?? destination?.Authentication ?? utils_1.DESTINATION_AUTHTYPE_NOTFOUND;
212
214
  const overwrite = this.options.overwrite ?? this.answers.overwrite;
213
215
  this.answers = {
@@ -215,7 +217,8 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
215
217
  addManagedAppRouter,
216
218
  isDestinationFullUrl,
217
219
  destinationAuthentication,
218
- overwrite
220
+ overwrite,
221
+ addAppFrontendRouter
219
222
  };
220
223
  }
221
224
  async writing() {
@@ -254,6 +257,7 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
254
257
  return {
255
258
  appPath: this.appPath,
256
259
  addManagedAppRouter: this.answers.addManagedAppRouter,
260
+ addAppFrontendRouter: this.answers.addAppFrontendRouter,
257
261
  destinationName: this.answers.destinationName,
258
262
  destinationAuthentication: this.answers.destinationAuthentication,
259
263
  isDestinationFullUrl: this.answers.isDestinationFullUrl,
@@ -315,6 +319,7 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
315
319
  const telemetryData = fiori_generator_shared_1.TelemetryHelper.createTelemetryData({
316
320
  DeployTarget: 'CF',
317
321
  ManagedApprouter: this.answers.addManagedAppRouter,
322
+ AppFrontendRouter: this.answers.addAppFrontendRouter,
318
323
  MTA: this.mtaPath ? 'true' : 'false',
319
324
  ...this.options.telemetryData
320
325
  }) ?? {};
@@ -40,7 +40,7 @@ async function getCFQuestions({ projectRoot, isAbapDirectServiceBinding, cfDesti
40
40
  addBTPDestinationList: isBAS ? !isAbapDirectServiceBinding : false,
41
41
  additionalChoiceList: cfChoices
42
42
  },
43
- [cf_deploy_config_inquirer_1.promptNames.addManagedAppRouter]: !mtaYamlExists && !isCap,
43
+ [cf_deploy_config_inquirer_1.promptNames.routerType]: !mtaYamlExists && !isCap,
44
44
  [cf_deploy_config_inquirer_1.promptNames.overwrite]: addOverwrite
45
45
  };
46
46
  deploy_config_generator_shared_1.DeploymentGenerator.logger?.debug((0, utils_2.t)('cfGen.debug.promptOptions', { options: JSON.stringify(options) }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/cf-deploy-config-sub-generator",
3
3
  "description": "Generators for configuring Cloud Foundry deployment configuration",
4
- "version": "0.1.42",
4
+ "version": "0.1.43",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -24,8 +24,8 @@
24
24
  "i18next": "23.5.1",
25
25
  "yeoman-generator": "5.10.0",
26
26
  "@sap-ux/btp-utils": "1.0.3",
27
- "@sap-ux/cf-deploy-config-writer": "0.2.2",
28
- "@sap-ux/cf-deploy-config-inquirer": "0.2.25",
27
+ "@sap-ux/cf-deploy-config-writer": "0.2.3",
28
+ "@sap-ux/cf-deploy-config-inquirer": "0.2.26",
29
29
  "@sap-ux/deploy-config-generator-shared": "0.0.41",
30
30
  "@sap-ux/feature-toggle": "0.2.3",
31
31
  "@sap-ux/fiori-generator-shared": "0.10.1",