@sap-ux/cf-deploy-config-inquirer 0.4.0 → 0.5.0
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/dist/prompts/prompts.js +2 -2
- package/dist/types.d.ts +6 -3
- package/dist/types.js +5 -2
- package/package.json +4 -4
package/dist/prompts/prompts.js
CHANGED
|
@@ -119,7 +119,7 @@ function getAddManagedAppRouterPrompt() {
|
|
|
119
119
|
function getOverwritePrompt() {
|
|
120
120
|
return {
|
|
121
121
|
type: 'confirm',
|
|
122
|
-
name: types_1.promptNames.
|
|
122
|
+
name: types_1.promptNames.overwriteCfConfig,
|
|
123
123
|
guiOptions: {
|
|
124
124
|
hint: (0, i18n_1.t)('prompts.overwriteHintMessage')
|
|
125
125
|
},
|
|
@@ -169,7 +169,7 @@ function getRouterOptionsPrompt() {
|
|
|
169
169
|
*/
|
|
170
170
|
async function getQuestions(promptOptions, log) {
|
|
171
171
|
const destinationOptions = promptOptions[types_1.promptNames.destinationName];
|
|
172
|
-
const addOverwriteQuestion = !promptOptions.
|
|
172
|
+
const addOverwriteQuestion = !promptOptions.overwriteCfConfig?.hide;
|
|
173
173
|
const addManagedAppRouterQuestions = !promptOptions.addManagedAppRouter?.hide;
|
|
174
174
|
const addRouterTypeQuestion = !promptOptions.routerType?.hide;
|
|
175
175
|
const questions = [];
|
package/dist/types.d.ts
CHANGED
|
@@ -2,14 +2,17 @@ import type { CommonPromptOptions, YUIQuestion } from '@sap-ux/inquirer-common';
|
|
|
2
2
|
import type { AutocompleteQuestionOptions } from 'inquirer-autocomplete-prompt';
|
|
3
3
|
/**
|
|
4
4
|
* Enum defining prompt names for Cloud Foundry (CF) deployment configuration.
|
|
5
|
+
*
|
|
6
|
+
* N.B. as these prompts are merged with ABAP prompts (see `promptNames` in packages/abap-deploy-config-inquirer/src/types.ts),
|
|
7
|
+
* ensure that the names are unique across both files.
|
|
5
8
|
*/
|
|
6
9
|
export declare enum promptNames {
|
|
7
10
|
/** The prompt to specify the destination name for CF deployment. */
|
|
8
11
|
destinationName = "destinationName",
|
|
9
12
|
/** The prompt to specify if a managed app router should be added to the deployment. */
|
|
10
13
|
addManagedAppRouter = "addManagedAppRouter",
|
|
11
|
-
/** The prompt for confirming
|
|
12
|
-
|
|
14
|
+
/** The prompt for confirming cf config overwrite. */
|
|
15
|
+
overwriteCfConfig = "overwriteCfConfig",
|
|
13
16
|
/** The prompt for confirming the router type. */
|
|
14
17
|
routerType = "routerType"
|
|
15
18
|
}
|
|
@@ -65,7 +68,7 @@ export type DestinationRouterPromptOptions = {
|
|
|
65
68
|
type cfDeployConfigPromptOptions = {
|
|
66
69
|
[promptNames.destinationName]: DestinationNamePromptOptions & CommonPromptOptions;
|
|
67
70
|
[promptNames.addManagedAppRouter]: CommonPromptOptions;
|
|
68
|
-
[promptNames.
|
|
71
|
+
[promptNames.overwriteCfConfig]: CommonPromptOptions;
|
|
69
72
|
[promptNames.routerType]: CommonPromptOptions;
|
|
70
73
|
};
|
|
71
74
|
/**
|
package/dist/types.js
CHANGED
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RouterModuleType = exports.appRouterPromptNames = exports.promptNames = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Enum defining prompt names for Cloud Foundry (CF) deployment configuration.
|
|
6
|
+
*
|
|
7
|
+
* N.B. as these prompts are merged with ABAP prompts (see `promptNames` in packages/abap-deploy-config-inquirer/src/types.ts),
|
|
8
|
+
* ensure that the names are unique across both files.
|
|
6
9
|
*/
|
|
7
10
|
var promptNames;
|
|
8
11
|
(function (promptNames) {
|
|
@@ -10,8 +13,8 @@ var promptNames;
|
|
|
10
13
|
promptNames["destinationName"] = "destinationName";
|
|
11
14
|
/** The prompt to specify if a managed app router should be added to the deployment. */
|
|
12
15
|
promptNames["addManagedAppRouter"] = "addManagedAppRouter";
|
|
13
|
-
/** The prompt for confirming
|
|
14
|
-
promptNames["
|
|
16
|
+
/** The prompt for confirming cf config overwrite. */
|
|
17
|
+
promptNames["overwriteCfConfig"] = "overwriteCfConfig";
|
|
15
18
|
/** The prompt for confirming the router type. */
|
|
16
19
|
promptNames["routerType"] = "routerType";
|
|
17
20
|
})(promptNames || (exports.promptNames = promptNames = {}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/cf-deploy-config-inquirer",
|
|
3
3
|
"description": "Prompts module that can provide prompts for cf deployment config writer",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"i18next": "25.3.0",
|
|
23
23
|
"inquirer-autocomplete-prompt": "2.0.1",
|
|
24
|
-
"@sap-ux/inquirer-common": "0.7.
|
|
24
|
+
"@sap-ux/inquirer-common": "0.7.28",
|
|
25
25
|
"@sap-ux/btp-utils": "1.1.0",
|
|
26
26
|
"@sap-ux/logger": "0.7.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@sap-devx/yeoman-ui-types": "1.14.4",
|
|
30
|
-
"@types/inquirer-autocomplete-prompt": "2.0.
|
|
30
|
+
"@types/inquirer-autocomplete-prompt": "2.0.2",
|
|
31
31
|
"@types/inquirer": "8.2.6",
|
|
32
32
|
"inquirer": "8.2.6",
|
|
33
|
-
"@sap-ux/project-input-validator": "0.6.
|
|
33
|
+
"@sap-ux/project-input-validator": "0.6.13"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=20.x"
|