@sap-ux/cf-deploy-config-sub-generator 0.1.44 → 0.1.45

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.
@@ -208,8 +208,12 @@ class default_1 extends deploy_config_generator_shared_1.DeploymentGenerator {
208
208
  const destinationName = this.destinationName || this.answers.destinationName;
209
209
  const destination = await (0, deploy_config_generator_shared_1.getDestination)(destinationName);
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
+ const addManagedAppRouter = this.options.addManagedAppRouter ??
212
+ (this.options.routerType === cf_deploy_config_inquirer_1.RouterModuleType.Managed ||
213
+ this.answers.routerType === cf_deploy_config_inquirer_1.RouterModuleType.Managed);
214
+ const addAppFrontendRouter = this.options.addAppFrontendRouter ??
215
+ (this.options.routerType === cf_deploy_config_inquirer_1.RouterModuleType.AppFront ||
216
+ this.answers.routerType === cf_deploy_config_inquirer_1.RouterModuleType.AppFront);
213
217
  const destinationAuthentication = this.options.destinationAuthType ?? destination?.Authentication ?? utils_1.DESTINATION_AUTHTYPE_NOTFOUND;
214
218
  const overwrite = this.options.overwrite ?? this.answers.overwrite;
215
219
  this.answers = {
@@ -44,7 +44,7 @@ async function getCFQuestions({ projectRoot, isAbapDirectServiceBinding, cfDesti
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) }));
47
- return (0, cf_deploy_config_inquirer_1.getPrompts)(options);
47
+ return (0, cf_deploy_config_inquirer_1.getPrompts)(options, deploy_config_generator_shared_1.DeploymentGenerator.logger);
48
48
  }
49
49
  /**
50
50
  * Retrieve the CF Approuter questions, certain prompts are restricted to support CAP project.
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.44",
4
+ "version": "0.1.45",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -25,7 +25,7 @@
25
25
  "yeoman-generator": "5.10.0",
26
26
  "@sap-ux/btp-utils": "1.0.3",
27
27
  "@sap-ux/cf-deploy-config-writer": "0.2.3",
28
- "@sap-ux/cf-deploy-config-inquirer": "0.2.27",
28
+ "@sap-ux/cf-deploy-config-inquirer": "0.2.28",
29
29
  "@sap-ux/deploy-config-generator-shared": "0.0.42",
30
30
  "@sap-ux/feature-toggle": "0.2.3",
31
31
  "@sap-ux/fiori-generator-shared": "0.10.2",