@sap-ux/cf-deploy-config-sub-generator 0.2.38 → 0.2.39

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.
@@ -34,16 +34,17 @@ async function getCFQuestions({ projectRoot, isAbapDirectServiceBinding, cfDesti
34
34
  apiHubConfigType: apiHubConfig?.apiHubType
35
35
  });
36
36
  const options = {
37
- ...promptOptions,
38
37
  [cf_deploy_config_inquirer_1.promptNames.destinationName]: {
39
38
  defaultValue: (0, utils_1.destinationQuestionDefaultOption)(isAbapDirectServiceBinding, isBAS, cfDestination),
40
39
  hint: !!isAbapDirectServiceBinding,
41
40
  useAutocomplete: (0, fiori_generator_shared_1.getHostEnvironment)() === fiori_generator_shared_1.hostEnvironment.cli,
42
41
  addBTPDestinationList: isBAS ? !isAbapDirectServiceBinding : false,
43
- additionalChoiceList: cfChoices
42
+ additionalChoiceList: cfChoices,
43
+ ...promptOptions?.destinationName
44
44
  },
45
- [cf_deploy_config_inquirer_1.promptNames.routerType]: !mtaYamlExists && !isCap,
46
- [cf_deploy_config_inquirer_1.promptNames.overwrite]: addOverwrite
45
+ [cf_deploy_config_inquirer_1.promptNames.addManagedAppRouter]: { hide: true, ...promptOptions?.addManagedAppRouter },
46
+ [cf_deploy_config_inquirer_1.promptNames.routerType]: { hide: mtaYamlExists || isCap, ...promptOptions?.routerType },
47
+ [cf_deploy_config_inquirer_1.promptNames.overwrite]: { hide: !addOverwrite, ...promptOptions?.overwrite }
47
48
  };
48
49
  deploy_config_generator_shared_1.DeploymentGenerator.logger?.debug((0, utils_2.t)('cfGen.debug.promptOptions', { options: JSON.stringify(options) }));
49
50
  return (0, cf_deploy_config_inquirer_1.getPrompts)(options, deploy_config_generator_shared_1.DeploymentGenerator.logger);
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.2.38",
4
+ "version": "0.2.39",
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.1.0",
27
27
  "@sap-ux/cf-deploy-config-writer": "0.3.16",
28
- "@sap-ux/cf-deploy-config-inquirer": "0.3.30",
28
+ "@sap-ux/cf-deploy-config-inquirer": "0.4.0",
29
29
  "@sap-ux/deploy-config-generator-shared": "0.1.22",
30
30
  "@sap-ux/feature-toggle": "0.3.0",
31
31
  "@sap-ux/fiori-generator-shared": "0.13.3",
@@ -56,7 +56,7 @@
56
56
  "watch": "tsc --watch",
57
57
  "lint": "eslint . --ext .ts",
58
58
  "lint:fix": "eslint . --ext .ts --fix",
59
- "test": "jest --ci --forceExit --detectOpenHandles --colors --passWithNoTests",
59
+ "test": "jest --ci --forceExit --detectOpenHandles --colors",
60
60
  "test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
61
61
  "link": "pnpm link --global",
62
62
  "unlink": "pnpm unlink --global"