@sap-ux/abap-deploy-config-sub-generator 1.0.27 → 1.0.29

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.
@@ -165,7 +165,8 @@ export default class extends DeploymentGenerator {
165
165
  showOverwriteQuestion: showOverwriteQuestion(this.launchDeployConfigAsSubGenerator, this.launchStandaloneFromYui, this.options.overwrite, this.configExists),
166
166
  projectType: this.projectType,
167
167
  logger: DeploymentGenerator.logger,
168
- promptOptions
168
+ promptOptions,
169
+ promptModule: this.env?.adapter?.promptModule
169
170
  });
170
171
  const prompAnswers = await this.prompt(abapDeployConfigPrompts);
171
172
  this.answers = reconcileAnswers(prompAnswers, abapAnswers);
@@ -1,6 +1,7 @@
1
1
  import { DeployProjectType } from './types.js';
2
2
  import type { ILogWrapper } from '@sap-ux/fiori-generator-shared';
3
3
  import type { AbapDeployConfigAnswersInternal, AbapDeployConfigPromptOptions, AbapDeployConfigQuestion } from '@sap-ux/abap-deploy-config-inquirer';
4
+ import type { PromptModule } from 'inquirer';
4
5
  import type { FioriToolsProxyConfigBackend } from '@sap-ux/ui5-config';
5
6
  import type { ConnectedSystem } from '@sap-ux/deploy-config-generator-shared';
6
7
  /**
@@ -16,9 +17,10 @@ import type { ConnectedSystem } from '@sap-ux/deploy-config-generator-shared';
16
17
  * @param params.projectType - the project type
17
18
  * @param params.logger - the logger
18
19
  * @param params.promptOptions - A set of optional feature flags to prompts behavior.
20
+ * @param params.promptModule - optional inquirer prompt module instance used to register plugins
19
21
  * @returns - the prompts and answers
20
22
  */
21
- export declare function getAbapQuestions({ appRootPath, connectedSystem, backendConfig, configFile, indexGenerationAllowed, showOverwriteQuestion, projectType, promptOptions, logger }: {
23
+ export declare function getAbapQuestions({ appRootPath, connectedSystem, backendConfig, configFile, indexGenerationAllowed, showOverwriteQuestion, projectType, promptOptions, logger, promptModule }: {
22
24
  appRootPath: string;
23
25
  connectedSystem?: ConnectedSystem;
24
26
  backendConfig?: FioriToolsProxyConfigBackend;
@@ -28,6 +30,7 @@ export declare function getAbapQuestions({ appRootPath, connectedSystem, backend
28
30
  projectType?: DeployProjectType;
29
31
  promptOptions?: AbapDeployConfigPromptOptions;
30
32
  logger?: ILogWrapper;
33
+ promptModule?: PromptModule;
31
34
  }): Promise<{
32
35
  prompts: AbapDeployConfigQuestion[];
33
36
  answers: Partial<AbapDeployConfigAnswersInternal>;
@@ -73,9 +73,10 @@ function getAbapTarget(destination, backendSystem, existingAbapDeployTask, backe
73
73
  * @param params.projectType - the project type
74
74
  * @param params.logger - the logger
75
75
  * @param params.promptOptions - A set of optional feature flags to prompts behavior.
76
+ * @param params.promptModule - optional inquirer prompt module instance used to register plugins
76
77
  * @returns - the prompts and answers
77
78
  */
78
- export async function getAbapQuestions({ appRootPath, connectedSystem, backendConfig, configFile = FileName.UI5DeployYaml, indexGenerationAllowed = false, showOverwriteQuestion = false, projectType = DeployProjectType.Application, promptOptions = {}, logger }) {
79
+ export async function getAbapQuestions({ appRootPath, connectedSystem, backendConfig, configFile = FileName.UI5DeployYaml, indexGenerationAllowed = false, showOverwriteQuestion = false, projectType = DeployProjectType.Application, promptOptions = {}, logger, promptModule }) {
79
80
  const { backendSystem, serviceProvider, destination } = connectedSystem || {};
80
81
  let existingAbapDeployTask;
81
82
  try {
@@ -115,6 +116,6 @@ export async function getAbapQuestions({ appRootPath, connectedSystem, backendCo
115
116
  },
116
117
  overwriteAbapConfig: { hide: !showOverwriteQuestion },
117
118
  transportInputChoice: { hideIfOnPremise: promptOptions?.transportInputChoice?.hideIfOnPremise ?? false }
118
- }, logger, getHostEnvironment() !== hostEnvironment.cli);
119
+ }, logger, getHostEnvironment() !== hostEnvironment.cli, promptModule);
119
120
  }
120
121
  //# sourceMappingURL=questions.js.map
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
8
8
  "directory": "packages/abap-deploy-config-sub-generator"
9
9
  },
10
- "version": "1.0.27",
10
+ "version": "1.0.29",
11
11
  "license": "Apache-2.0",
12
12
  "main": "generators/app/index.js",
13
13
  "files": [
@@ -22,20 +22,21 @@
22
22
  "dependencies": {
23
23
  "i18next": "25.10.10",
24
24
  "@sap-devx/yeoman-ui-types": "1.25.0",
25
- "@sap-ux/abap-deploy-config-inquirer": "2.0.19",
26
- "@sap-ux/abap-deploy-config-writer": "1.0.11",
27
- "@sap-ux/btp-utils": "2.0.3",
28
- "@sap-ux/deploy-config-generator-shared": "1.0.16",
29
- "@sap-ux/feature-toggle": "1.0.3",
30
- "@sap-ux/fiori-generator-shared": "1.0.16",
31
- "@sap-ux/logger": "1.0.1",
32
- "@sap-ux/project-access": "2.1.4",
33
- "@sap-ux/ui5-config": "1.0.3",
34
- "@sap-ux/adp-tooling": "1.0.25",
35
- "@sap-ux/axios-extension": "2.0.4"
25
+ "@sap-ux/abap-deploy-config-inquirer": "2.0.21",
26
+ "@sap-ux/abap-deploy-config-writer": "1.0.12",
27
+ "@sap-ux/btp-utils": "2.0.4",
28
+ "@sap-ux/deploy-config-generator-shared": "1.0.17",
29
+ "@sap-ux/feature-toggle": "1.0.4",
30
+ "@sap-ux/fiori-generator-shared": "1.0.17",
31
+ "@sap-ux/logger": "1.0.2",
32
+ "@sap-ux/project-access": "2.1.5",
33
+ "@sap-ux/ui5-config": "1.0.4",
34
+ "@sap-ux/adp-tooling": "1.0.26",
35
+ "@sap-ux/axios-extension": "2.0.5"
36
36
  },
37
37
  "devDependencies": {
38
- "@jest/globals": "30.3.0",
38
+ "@jest/globals": "30.4.1",
39
+ "@types/inquirer": "8.2.6",
39
40
  "@types/mem-fs": "1.1.2",
40
41
  "@types/mem-fs-editor": "7.0.1",
41
42
  "@types/yeoman-test": "4.0.6",
@@ -44,9 +45,9 @@
44
45
  "rimraf": "6.1.3",
45
46
  "unionfs": "4.6.0",
46
47
  "yeoman-test": "6.3.0",
47
- "@sap-ux/store": "2.0.2",
48
- "@sap-ux/system-access": "1.0.4",
49
- "@sap-ux/telemetry": "1.0.14"
48
+ "@sap-ux/store": "2.0.3",
49
+ "@sap-ux/system-access": "1.0.5",
50
+ "@sap-ux/telemetry": "1.0.15"
50
51
  },
51
52
  "scripts": {
52
53
  "build": "tsc --build",