@sap-ux/ui5-application-inquirer 0.15.46 → 0.15.47

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.
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getQuestions = getQuestions;
7
- /* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
8
7
  // Nullish coalescing operator lint warnings disabled as its not appropriate in most cases where empty strings are not considered valid
9
8
  const node_os_1 = __importDefault(require("node:os"));
10
9
  const node_path_1 = require("node:path");
@@ -30,7 +29,7 @@ async function getQuestions(ui5Versions, promptOptions, capCdsInfo, isYUI = fals
30
29
  : promptOptions?.[types_1.promptNames.name]?.defaultValue;
31
30
  let targetDir = typeof promptOptions?.[types_1.promptNames.targetFolder]?.default === 'string'
32
31
  ? promptOptions[types_1.promptNames.targetFolder].default // Default functions will be applied later, these replace the existing defaults
33
- : promptOptions?.[types_1.promptNames.targetFolder]?.defaultValue ?? process.cwd();
32
+ : (promptOptions?.[types_1.promptNames.targetFolder]?.defaultValue ?? process.cwd());
34
33
  const shouldValidateFioriAppFolder = promptOptions?.[types_1.promptNames.targetFolder]?.validateFioriAppFolder;
35
34
  if (shouldValidateFioriAppFolder) {
36
35
  const isValidFolder = await (0, project_input_validator_1.validateFioriAppProjectFolder)(targetDir);
@@ -72,7 +72,7 @@ function hidePrompts(prompts, promptOptions, capCdsInfo) {
72
72
  const promptKey = key;
73
73
  // Narrow the type as we are only dealing with `hide` options
74
74
  const promptOpt = promptOptions?.[promptKey];
75
- const hidePrompt = typeof promptOpt?.hide === 'function' ? promptOpt.hide(isCapProject) : promptOpt?.hide ?? false;
75
+ const hidePrompt = typeof promptOpt?.hide === 'function' ? promptOpt.hide(isCapProject) : (promptOpt?.hide ?? false);
76
76
  if (!hidePrompt &&
77
77
  // Target directory is determined by the CAP project. `enableEsLint` and `targetFolder` are not available for CAP projects
78
78
  !([types_1.promptNames.targetFolder, types_1.promptNames.enableEslint].includes(types_1.promptNames[promptKey]) &&
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.15.46",
4
+ "version": "0.15.47",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -23,10 +23,10 @@
23
23
  "inquirer-autocomplete-prompt": "2.0.1",
24
24
  "lodash": "4.17.21",
25
25
  "semver": "7.5.4",
26
- "@sap-ux/inquirer-common": "0.9.15",
27
- "@sap-ux/project-access": "1.32.15",
28
- "@sap-ux/project-input-validator": "0.6.37",
29
- "@sap-ux/ui5-info": "0.13.3"
26
+ "@sap-ux/inquirer-common": "0.9.16",
27
+ "@sap-ux/project-access": "1.32.16",
28
+ "@sap-ux/project-input-validator": "0.6.38",
29
+ "@sap-ux/ui5-info": "0.13.4"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@sap-devx/yeoman-ui-types": "1.14.4",
@@ -35,7 +35,7 @@
35
35
  "@types/lodash": "4.14.202",
36
36
  "@types/semver": "7.5.4",
37
37
  "inquirer": "8.2.7",
38
- "@sap-ux/cap-config-writer": "0.12.33"
38
+ "@sap-ux/cap-config-writer": "0.12.34"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=20.x"
@@ -44,8 +44,8 @@
44
44
  "build": "tsc --build",
45
45
  "clean": "rimraf --glob dist test/test-output coverage *.tsbuildinfo",
46
46
  "watch": "tsc --watch",
47
- "lint": "eslint . --ext .ts",
48
- "lint:fix": "eslint . --ext .ts --fix",
47
+ "lint": "eslint",
48
+ "lint:fix": "eslint --fix",
49
49
  "test": "jest --ci --forceExit --detectOpenHandles --colors",
50
50
  "test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
51
51
  "link": "pnpm link --global",