vona-cli-set-api 1.0.436 → 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.
- package/cli/templates/create/project/basic/boilerplate/env/.env +1 -1
- package/cli/templates/create/project/basic/boilerplate/package.original.json +2 -1
- package/cli/templates/create/project/basic/boilerplate/tsconfig.base.esm.json +2 -1
- package/cli/templates/tools/crud/boilerplate/src/controller/{{resourceName}}.ts_ +5 -5
- package/cli/templates/tools/crud/boilerplate/src/dto/{{{resourceName}}Query.ts_ → {{resourceName}}Query.tsx_} +1 -1
- package/cli/templates/tools/crud/boilerplate/src/model/{{resourceName}}.ts_ +1 -1
- package/cli/templates/tools/crud/boilerplate/src/service/{{resourceName}}.ts_ +4 -4
- package/dist/index.js +1 -1
- package/package.json +5 -5
- /package/cli/templates/tools/crud/boilerplate/src/dto/{{{resourceName}}Create.ts_ → {{resourceName}}Create.tsx_} +0 -0
- /package/cli/templates/tools/crud/boilerplate/src/dto/{{{resourceName}}QueryRes.ts_ → {{resourceName}}QueryRes.tsx_} +0 -0
- /package/cli/templates/tools/crud/boilerplate/src/dto/{{{resourceName}}Update.ts_ → {{resourceName}}Update.tsx_} +0 -0
- /package/cli/templates/tools/crud/boilerplate/src/entity/{{{resourceName}}.ts_ → {{resourceName}}.tsx_} +0 -0
|
@@ -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.
|
|
9
|
-
import { Dto<%=argv.resourceNameCapitalize%>Query } from '../dto/<%=argv.resourceName%>Query.
|
|
10
|
-
import { Dto<%=argv.resourceNameCapitalize%>QueryRes } from '../dto/<%=argv.resourceName%>QueryRes.
|
|
11
|
-
import { Dto<%=argv.resourceNameCapitalize%>Update } from '../dto/<%=argv.resourceName%>Update.
|
|
12
|
-
import { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.
|
|
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%>.
|
|
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%>.
|
|
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.
|
|
4
|
-
import type { Dto<%=argv.resourceNameCapitalize%>QueryRes } from '../dto/<%=argv.resourceName%>QueryRes.
|
|
5
|
-
import type { Dto<%=argv.resourceNameCapitalize%>Update } from '../dto/<%=argv.resourceName%>Update.
|
|
6
|
-
import type { Entity<%=argv.resourceNameCapitalize%> } from '../entity/<%=argv.resourceName%>.
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
39
|
+
"@cabloy/module-glob": "^5.2.36",
|
|
40
40
|
"@cabloy/module-info": "^1.3.32",
|
|
41
|
-
"@cabloy/utils": "^
|
|
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.
|
|
67
|
+
"vona-core": "^5.0.111",
|
|
68
68
|
"why-is-node-running": "^3.2.2",
|
|
69
69
|
"yargs-parser": "^22.0.0"
|
|
70
70
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|