vona-cli-set-api 1.0.438 → 1.0.440

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.
@@ -46,7 +46,8 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "vona": "^5.0.247"
49
+ "react": "^19.2.3",
50
+ "vona": "^5.0.248"
50
51
  },
51
52
  "devDependencies": {
52
53
  "@cabloy/lint": "^5.0.16",
@@ -5,6 +5,7 @@
5
5
  "module": "nodenext",
6
6
  "allowImportingTsExtensions": true,
7
7
  "rewriteRelativeImportExtensions": true,
8
- "verbatimModuleSyntax": true
8
+ "verbatimModuleSyntax": true,
9
+ "jsx": "react"
9
10
  }
10
11
  }
@@ -5,11 +5,11 @@ import type { Model<%=argv.resourceNameCapitalize%> } from '../model/<%=argv.res
5
5
  import { BeanBase } from 'vona';
6
6
  import { Api, v } from 'vona-module-a-openapiutils';
7
7
  import { Arg, Controller, Web } from 'vona-module-a-web';
8
- import { Dto<%=argv.resourceNameCapitalize%>Create } from '../dto/<%=argv.resourceName%>Create.ts';
9
- import { Dto<%=argv.resourceNameCapitalize%>Query } from '../dto/<%=argv.resourceName%>Query.ts';
10
- import { Dto<%=argv.resourceNameCapitalize%>QueryRes } from '../dto/<%=argv.resourceName%>QueryRes.ts';
11
- import { Dto<%=argv.resourceNameCapitalize%>Update } from '../dto/<%=argv.resourceName%>Update.ts';
12
- import { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.ts';
8
+ import { Dto<%=argv.resourceNameCapitalize%>Create } from '../dto/<%=argv.resourceName%>Create.tsx';
9
+ import { Dto<%=argv.resourceNameCapitalize%>Query } from '../dto/<%=argv.resourceName%>Query.tsx';
10
+ import { Dto<%=argv.resourceNameCapitalize%>QueryRes } from '../dto/<%=argv.resourceName%>QueryRes.tsx';
11
+ import { Dto<%=argv.resourceNameCapitalize%>Update } from '../dto/<%=argv.resourceName%>Update.tsx';
12
+ import { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.tsx';
13
13
 
14
14
  export interface IControllerOptions<%=argv.resourceNameCapitalize%> extends IDecoratorControllerOptions {}
15
15
 
@@ -2,7 +2,7 @@ import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
2
  import { Api, v } from 'vona-module-a-openapiutils';
3
3
  import { $Dto } from 'vona-module-a-orm';
4
4
  import { Dto } from 'vona-module-a-web';
5
- import { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.ts';
5
+ import { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.tsx';
6
6
 
7
7
  export interface IDtoOptions<%=argv.resourceNameCapitalize%>Query extends IDecoratorDtoOptions {}
8
8
 
@@ -1,6 +1,6 @@
1
1
  import type { IDecoratorModelOptions } from 'vona-module-a-orm';
2
2
  import { BeanModelBase, Model } from 'vona-module-a-orm';
3
- import { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.ts';
3
+ import { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.tsx';
4
4
 
5
5
  export interface IModelOptions<%=argv.resourceNameCapitalize%> extends IDecoratorModelOptions<Entity<%=argv.resourceNameCapitalize%>> {}
6
6
 
@@ -1,9 +1,9 @@
1
1
  import type { TableIdentity } from 'table-identity';
2
2
  import type { IQueryParams } from 'vona-module-a-orm';
3
- import type { Dto<%=argv.resourceNameCapitalize%>Create } from '../dto/<%=argv.resourceName%>Create.ts';
4
- import type { Dto<%=argv.resourceNameCapitalize%>QueryRes } from '../dto/<%=argv.resourceName%>QueryRes.ts';
5
- import type { Dto<%=argv.resourceNameCapitalize%>Update } from '../dto/<%=argv.resourceName%>Update.ts';
6
- import type { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.ts';
3
+ import type { Dto<%=argv.resourceNameCapitalize%>Create } from '../dto/<%=argv.resourceName%>Create.tsx';
4
+ import type { Dto<%=argv.resourceNameCapitalize%>QueryRes } from '../dto/<%=argv.resourceName%>QueryRes.tsx';
5
+ import type { Dto<%=argv.resourceNameCapitalize%>Update } from '../dto/<%=argv.resourceName%>Update.tsx';
6
+ import type { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.tsx';
7
7
  import type { Model<%=argv.resourceNameCapitalize%> } from '../model/<%=argv.resourceName%>.ts';
8
8
  import { BeanBase } from 'vona';
9
9
  import { Service } from 'vona-module-a-bean';
package/dist/index.js CHANGED
@@ -2048,7 +2048,7 @@ function getScopeModuleName(moduleName) {
2048
2048
  async function globBeanFiles(sceneName, sceneMeta, moduleName, modulePath) {
2049
2049
  const result = [];
2050
2050
  const sceneNameCapitalize = toUpperCaseFirstChar(sceneName);
2051
- const pattern = sceneMeta.sceneIsolate ? `src/${sceneName}/*.ts` : `src/bean/${sceneName}.*.ts`;
2051
+ const pattern = sceneMeta.sceneIsolate ? `src/${sceneName}/*.ts(x)?` : `src/bean/${sceneName}.*.ts(x)?`;
2052
2052
  const files = await globby(pattern, {
2053
2053
  cwd: modulePath
2054
2054
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
3
  "type": "module",
4
- "version": "1.0.438",
4
+ "version": "1.0.440",
5
5
  "description": "vona cli-set-api",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,12 +33,12 @@
33
33
  "@babel/plugin-proposal-decorators": "^7.25.9",
34
34
  "@babel/plugin-transform-class-properties": "^7.25.9",
35
35
  "@babel/plugin-transform-typescript": "^7.26.8",
36
- "@cabloy/cli": "^3.0.76",
36
+ "@cabloy/cli": "^3.0.77",
37
37
  "@cabloy/dotenv": "^1.1.12",
38
38
  "@cabloy/extend": "^3.1.11",
39
- "@cabloy/module-glob": "^5.2.35",
39
+ "@cabloy/module-glob": "^5.2.36",
40
40
  "@cabloy/module-info": "^1.3.32",
41
- "@cabloy/utils": "^1.0.49",
41
+ "@cabloy/utils": "^2.0.1",
42
42
  "@cabloy/word-utils": "^2.0.1",
43
43
  "@lcov-viewer/cli": "^1.3.0",
44
44
  "@rollup/plugin-alias": "^5.1.1",
@@ -64,7 +64,7 @@
64
64
  "ts-node-maintained": "^10.9.6",
65
65
  "urllib": "^4.6.11",
66
66
  "uuid": "^11.1.0",
67
- "vona-core": "^5.0.110",
67
+ "vona-core": "^5.0.111",
68
68
  "why-is-node-running": "^3.2.2",
69
69
  "yargs-parser": "^22.0.0"
70
70
  },