@sap-ux/create 0.14.12 → 0.14.14

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.
@@ -99,7 +99,7 @@ async function convertQuestion(question, answers) {
99
99
  type: QUESTION_TYPE_MAP[question.type ?? 'input'] ?? question.type,
100
100
  name: question.name,
101
101
  message: await extractMessage(question, answers),
102
- validate: async (value) => isFunction(question.validate) ? await question.validate(value, answers) : question.validate ?? true,
102
+ validate: async (value) => isFunction(question.validate) ? await question.validate(value, answers) : (question.validate ?? true),
103
103
  initial: () => (isFunction(question.default) ? question.default(answers) : question.default)
104
104
  };
105
105
  if (question.choices || question.source) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/create",
3
3
  "description": "SAP Fiori tools module to add or remove features",
4
- "version": "0.14.12",
4
+ "version": "0.14.14",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,19 +30,19 @@
30
30
  "mem-fs": "2.1.0",
31
31
  "mem-fs-editor": "9.4.0",
32
32
  "prompts": "2.4.2",
33
- "@sap-ux/abap-deploy-config-inquirer": "1.6.59",
34
- "@sap-ux/abap-deploy-config-writer": "0.2.42",
35
- "@sap-ux/adp-tooling": "0.18.20",
36
- "@sap-ux/app-config-writer": "0.6.66",
37
- "@sap-ux/cap-config-writer": "0.12.33",
38
- "@sap-ux/logger": "0.7.1",
39
- "@sap-ux/mockserver-config-writer": "0.9.32",
40
- "@sap-ux/odata-service-writer": "0.27.37",
41
- "@sap-ux/preview-middleware": "0.23.72",
42
- "@sap-ux/project-access": "1.32.15",
43
- "@sap-ux/system-access": "0.6.31",
44
- "@sap-ux/ui5-config": "0.29.10",
45
- "@sap-ux/flp-config-inquirer": "0.4.79"
33
+ "@sap-ux/abap-deploy-config-inquirer": "1.6.61",
34
+ "@sap-ux/abap-deploy-config-writer": "0.2.44",
35
+ "@sap-ux/adp-tooling": "0.18.22",
36
+ "@sap-ux/app-config-writer": "0.6.68",
37
+ "@sap-ux/cap-config-writer": "0.12.35",
38
+ "@sap-ux/logger": "0.7.2",
39
+ "@sap-ux/mockserver-config-writer": "0.9.33",
40
+ "@sap-ux/odata-service-writer": "0.27.38",
41
+ "@sap-ux/preview-middleware": "0.23.74",
42
+ "@sap-ux/project-access": "1.32.16",
43
+ "@sap-ux/system-access": "0.6.33",
44
+ "@sap-ux/ui5-config": "0.29.11",
45
+ "@sap-ux/flp-config-inquirer": "0.4.81"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/diff": "5.0.9",
@@ -50,15 +50,15 @@
50
50
  "@types/mem-fs": "1.1.2",
51
51
  "@types/mem-fs-editor": "7.0.1",
52
52
  "@types/prompts": "2.4.4",
53
- "@sap-ux/inquirer-common": "0.9.15",
54
- "@sap-ux/store": "1.3.4"
53
+ "@sap-ux/inquirer-common": "0.9.17",
54
+ "@sap-ux/store": "1.4.0"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "tsc --build && node ./scripts/generate-readme.js",
58
58
  "clean": "rimraf --glob dist coverage *.tsbuildinfo",
59
59
  "format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
60
- "lint": "eslint . --ext .ts",
61
- "lint:fix": "eslint . --ext .ts --fix",
60
+ "lint": "eslint",
61
+ "lint:fix": "eslint --fix",
62
62
  "test": "jest --ci --forceExit --detectOpenHandles --colors",
63
63
  "watch": "tsc --watch"
64
64
  }