@mindbase/express-common 1.0.11 → 1.0.12
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/commands/prepare.ts
CHANGED
|
@@ -12,9 +12,9 @@ export function generateDrizzleSchemasJson(
|
|
|
12
12
|
scannedResults: ScanResult[],
|
|
13
13
|
cwd: string = process.cwd()
|
|
14
14
|
): void {
|
|
15
|
-
//
|
|
15
|
+
// 提取所有 Drizzle schema 文件
|
|
16
16
|
const ormSchemaFiles = scannedResults
|
|
17
|
-
.filter((r) => r.type === "schema"
|
|
17
|
+
.filter((r) => r.type === "schema")
|
|
18
18
|
.map((f) => path.relative(cwd, f.filePath).replace(/\\/g, "/"));
|
|
19
19
|
|
|
20
20
|
// 生成到当前工作目录(宿主项目根目录)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindbase/express-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": "./index.ts"
|
|
6
6
|
},
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"test:watch": "vitest",
|
|
50
50
|
"test:ui": "vitest --ui",
|
|
51
51
|
"test:cov": "vitest run --coverage",
|
|
52
|
-
"
|
|
52
|
+
"prepublishOnly": "tsc --noEmit"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
package/routes/Doc.route.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Router, Request, Response } from "express";
|
|
2
2
|
import { docManager } from "../utils/DocManager";
|
|
3
3
|
import { validate } from "../utils/Validate";
|
|
4
|
-
import { routeIdParamsSchema } from "../zod/
|
|
4
|
+
import { routeIdParamsSchema } from "../zod/doc.validation";
|
|
5
5
|
import { ApiResponse, ModuleItem, RouteInfo } from "../types/DocTypes";
|
|
6
6
|
|
|
7
7
|
const router = Router();
|
|
File without changes
|