@sap-ux/ui5-application-inquirer 0.12.2 → 0.12.3
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/index.js
CHANGED
|
@@ -36,7 +36,7 @@ function getQuestions(ui5Versions, promptOptions, capCdsInfo, isYUI = false) {
|
|
|
36
36
|
[types_1.promptNames.enableTypeScript]: (0, prompts1_1.getEnableTypeScriptPrompt)(capCdsInfo),
|
|
37
37
|
[types_1.promptNames.addDeployConfig]: (0, prompts1_1.getAddDeployConfigPrompt)(targetDir, promptOptions?.addDeployConfig, isCapProject),
|
|
38
38
|
[types_1.promptNames.addFlpConfig]: (0, prompts1_1.getAddFlpConfigPrompt)(promptOptions?.addFlpConfig),
|
|
39
|
-
[types_1.promptNames.enableVirtualEndpoints]: (0, prompts1_1.getEnableVirtualEndpoints)(
|
|
39
|
+
[types_1.promptNames.enableVirtualEndpoints]: (0, prompts1_1.getEnableVirtualEndpoints)(capCdsInfo),
|
|
40
40
|
[types_1.promptNames.showAdvanced]: (0, prompts2_1.getShowAdvancedPrompt)(),
|
|
41
41
|
[types_1.promptNames.ui5Theme]: (0, prompts2_1.getUI5ThemePrompt)(),
|
|
42
42
|
[types_1.promptNames.enableEslint]: (0, prompts2_1.getEnableEsLintPrompt)(),
|
|
@@ -74,9 +74,8 @@ export declare function getAddFlpConfigPrompt(addFlpConfigOptions?: UI5Applicati
|
|
|
74
74
|
/**
|
|
75
75
|
* Get the `enableVirtualEndpoints` prompt.
|
|
76
76
|
*
|
|
77
|
-
* @param isCapProject is this a CAP project - additional checks performed if true
|
|
78
77
|
* @param capCdsInfo CDS UI5 plugin information
|
|
79
78
|
* @returns the `enableVirtualEndpoints` prompt
|
|
80
79
|
*/
|
|
81
|
-
export declare function getEnableVirtualEndpoints(
|
|
80
|
+
export declare function getEnableVirtualEndpoints(capCdsInfo?: CdsUi5PluginInfo): UI5ApplicationQuestion;
|
|
82
81
|
//# sourceMappingURL=prompts1.d.ts.map
|
package/dist/prompts/prompts1.js
CHANGED
|
@@ -259,15 +259,14 @@ function getAddFlpConfigPrompt(addFlpConfigOptions) {
|
|
|
259
259
|
/**
|
|
260
260
|
* Get the `enableVirtualEndpoints` prompt.
|
|
261
261
|
*
|
|
262
|
-
* @param isCapProject is this a CAP project - additional checks performed if true
|
|
263
262
|
* @param capCdsInfo CDS UI5 plugin information
|
|
264
263
|
* @returns the `enableVirtualEndpoints` prompt
|
|
265
264
|
*/
|
|
266
|
-
function getEnableVirtualEndpoints(
|
|
265
|
+
function getEnableVirtualEndpoints(capCdsInfo) {
|
|
267
266
|
return {
|
|
268
267
|
when: (answers) => {
|
|
269
|
-
if (
|
|
270
|
-
return capCdsInfo
|
|
268
|
+
if (capCdsInfo) {
|
|
269
|
+
return capCdsInfo.isCdsUi5PluginEnabled || !!answers?.enableTypeScript;
|
|
271
270
|
}
|
|
272
271
|
return true;
|
|
273
272
|
},
|
package/dist/types.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ type NamePromptOptions = {
|
|
|
125
125
|
/**
|
|
126
126
|
* These are boolean value prompt option keys
|
|
127
127
|
*/
|
|
128
|
-
type booleanPromptKeys = 'addDeployConfig' | 'addFlpConfig' | 'enableEslint' | 'skipAnnotations' | 'enableTypeScript' | 'enableCodeAssist' | 'showAdvanced';
|
|
128
|
+
type booleanPromptKeys = 'addDeployConfig' | 'addFlpConfig' | 'enableVirtualEndpoints' | 'enableEslint' | 'skipAnnotations' | 'enableTypeScript' | 'enableCodeAssist' | 'showAdvanced';
|
|
129
129
|
type stringValuePromptType = Omit<typeof promptNames, booleanPromptKeys>;
|
|
130
130
|
type stringValuePrompts = stringValuePromptType[keyof stringValuePromptType];
|
|
131
131
|
type booleanValuePromptType = Pick<typeof promptNames, booleanPromptKeys>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/ui5-application-inquirer",
|
|
3
3
|
"description": "Prompts module that can prompt users for inputs required for UI5 application writing",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.3",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|