@lakutata/cli 2.14.2 → 2.14.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.14.4](https://github.com/lakutata/lakutata-packages/compare/@lakutata/cli@2.14.3...@lakutata/cli@2.14.4) (2025-07-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cli:** filter empty enum values in DTO conversion ([2cece51](https://github.com/lakutata/lakutata-packages/commit/2cece5156b0b6eea4524a888e1bc89d1abc8c16b))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.14.3](https://github.com/lakutata/lakutata-packages/compare/@lakutata/cli@2.14.2...@lakutata/cli@2.14.3) (2025-07-11)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **cli:** remove redundant enum validation in ConvertDTO2Inquirer ([cc528b8](https://github.com/lakutata/lakutata-packages/commit/cc528b812c29cbc2de541d21af5283b53848c149))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [2.14.2](https://github.com/lakutata/lakutata-packages/compare/@lakutata/cli@2.14.1...@lakutata/cli@2.14.2) (2025-07-11)
7
29
 
8
30
  **Note:** Version bump only for package @lakutata/cli
@@ -26,7 +26,7 @@ async function ConvertDTO2Inquirer(dto) {
26
26
  case 'string':
27
27
  default: {
28
28
  if (propertyInfo.enum) {
29
- const enums = propertyInfo.enum;
29
+ const enums = propertyInfo.enum.filter(value => !!value);
30
30
  prompts.push({
31
31
  name: propertyName,
32
32
  type: 'list',
@@ -35,8 +35,7 @@ async function ConvertDTO2Inquirer(dto) {
35
35
  choices: enums.map((value) => ({
36
36
  name: value,
37
37
  value: value
38
- })),
39
- validate: (input) => enums.includes(input)
38
+ }))
40
39
  });
41
40
  }
42
41
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"CreateProjectOptions.d.ts","sourceRoot":"","sources":["../../src/options/CreateProjectOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,UAAU,CAAA;AAK5B;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,GAAG;IAQlC,IAAI,EAAE,MAAM,CAAA;IASZ,EAAE,EAAE,MAAM,CAAA;IAUV,QAAQ,EAAE,MAAM,CAAA;IAShB,IAAI,EAAE,MAAM,CAAA;IAUZ,SAAS,EAAE,OAAO,CAAA;IASlB,WAAW,EAAE,MAAM,CAAA;IASnB,MAAM,EAAE,MAAM,CAAA;IASd,OAAO,EAAE,MAAM,CAAA;CACzB"}
1
+ {"version":3,"file":"CreateProjectOptions.d.ts","sourceRoot":"","sources":["../../src/options/CreateProjectOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,UAAU,CAAA;AAQ5B;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,GAAG;IAQlC,IAAI,EAAE,MAAM,CAAA;IASZ,EAAE,EAAE,MAAM,CAAA;IAUV,QAAQ,EAAE,MAAM,CAAA;IAShB,IAAI,EAAE,MAAM,CAAA;IAUZ,SAAS,EAAE,OAAO,CAAA;IASlB,WAAW,EAAE,MAAM,CAAA;IASnB,MAAM,EAAE,MAAM,CAAA;IASd,OAAO,EAAE,MAAM,CAAA;CACzB"}
@@ -17,6 +17,9 @@ const lakutata_1 = require("lakutata");
17
17
  const dto_1 = require("lakutata/decorator/dto");
18
18
  const node_process_1 = __importDefault(require("node:process"));
19
19
  const ListTemplateNames_1 = require("../lib/ListTemplateNames");
20
+ const templateNames = (0, ListTemplateNames_1.ListTemplateNames)();
21
+ if (!templateNames.length)
22
+ templateNames.push('');
20
23
  /**
21
24
  * Create project options
22
25
  */
@@ -43,7 +46,7 @@ __decorate([
43
46
  (0, dto_1.Expect)(lakutata_1.DTO
44
47
  .String()
45
48
  .required()
46
- .allow(...(0, ListTemplateNames_1.ListTemplateNames)())
49
+ .allow(...templateNames)
47
50
  .only()
48
51
  .description('Choose a template for this project')),
49
52
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lakutata/cli",
3
- "version": "2.14.2",
3
+ "version": "2.14.4",
4
4
  "description": "Lakutata CLI tool",
5
5
  "keywords": [
6
6
  "lakutata",
@@ -50,5 +50,5 @@
50
50
  "devDependencies": {
51
51
  "@types/degit": "^2.8.6"
52
52
  },
53
- "gitHead": "e104593986eea83d2e5cd95df75498c3c06b03dc"
53
+ "gitHead": "7cf390eda3b7af5711485cd66472a3b8a5289509"
54
54
  }