@sap-ux/cf-deploy-config-sub-generator 1.0.3 → 1.0.5
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.
- package/generators/app/questions.js +3 -1
- package/generators/app/utils.js +2 -1
- package/package.json +10 -10
|
@@ -42,7 +42,9 @@ export async function getCFQuestions({ projectRoot, isAbapDirectServiceBinding,
|
|
|
42
42
|
[promptNames.routerType]: { hide: mtaYamlExists || isCap, ...promptOptions?.routerType },
|
|
43
43
|
[promptNames.overwriteCfConfig]: { hide: !addOverwrite, ...promptOptions?.overwriteCfConfig }
|
|
44
44
|
};
|
|
45
|
-
DeploymentGenerator.logger?.debug(t('cfGen.debug.promptOptions', {
|
|
45
|
+
DeploymentGenerator.logger?.debug(t('cfGen.debug.promptOptions', {
|
|
46
|
+
options: JSON.stringify({ ...options, isCap, addOverwrite, cfDestination, isAbapDirectServiceBinding })
|
|
47
|
+
}));
|
|
46
48
|
return getPrompts(options, DeploymentGenerator.logger);
|
|
47
49
|
}
|
|
48
50
|
/**
|
package/generators/app/utils.js
CHANGED
|
@@ -56,7 +56,8 @@ async function getCFSystemChoices(projectRoot, isCap, cfDestination) {
|
|
|
56
56
|
if (isCap) {
|
|
57
57
|
const mtaConfig = await MtaConfig.newInstance(projectRoot);
|
|
58
58
|
mtaDestinations = mtaConfig.getExposedDestinations();
|
|
59
|
-
if
|
|
59
|
+
// Only offer to create a destination, if the service exists
|
|
60
|
+
if (mtaConfig.hasResource('destination')) {
|
|
60
61
|
// Add default option
|
|
61
62
|
choices.push({
|
|
62
63
|
name: t('cfGen.prompts.capInstanceBasedDest.name'),
|
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": "1.0.
|
|
4
|
+
"version": "1.0.5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"hasbin": "1.2.3",
|
|
25
25
|
"i18next": "25.10.10",
|
|
26
26
|
"yeoman-generator": "5.10.0",
|
|
27
|
-
"@sap-ux/btp-utils": "2.0.
|
|
28
|
-
"@sap-ux/cf-deploy-config-writer": "1.0.
|
|
29
|
-
"@sap-ux/cf-deploy-config-inquirer": "1.0.
|
|
30
|
-
"@sap-ux/deploy-config-generator-shared": "1.0.
|
|
31
|
-
"@sap-ux/feature-toggle": "1.0.
|
|
32
|
-
"@sap-ux/fiori-generator-shared": "1.0.
|
|
33
|
-
"@sap-ux/inquirer-common": "1.0.
|
|
34
|
-
"@sap-ux/project-access": "2.0
|
|
27
|
+
"@sap-ux/btp-utils": "2.0.1",
|
|
28
|
+
"@sap-ux/cf-deploy-config-writer": "1.0.5",
|
|
29
|
+
"@sap-ux/cf-deploy-config-inquirer": "1.0.5",
|
|
30
|
+
"@sap-ux/deploy-config-generator-shared": "1.0.5",
|
|
31
|
+
"@sap-ux/feature-toggle": "1.0.1",
|
|
32
|
+
"@sap-ux/fiori-generator-shared": "1.0.5",
|
|
33
|
+
"@sap-ux/inquirer-common": "1.0.5",
|
|
34
|
+
"@sap-ux/project-access": "2.1.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@jest/globals": "30.3.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"rimraf": "6.1.3",
|
|
48
48
|
"unionfs": "4.6.0",
|
|
49
49
|
"yeoman-test": "6.3.0",
|
|
50
|
-
"@sap-ux/logger": "1.0.
|
|
50
|
+
"@sap-ux/logger": "1.0.1"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=22.x"
|