befly 3.8.13 → 3.8.15
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/check.ts +18 -11
- package/package.json +2 -2
- package/plugins/db.ts +1 -1
package/check.ts
CHANGED
|
@@ -65,17 +65,19 @@ export const checkTable = async function (): Promise<boolean> {
|
|
|
65
65
|
const allTableFiles: TableFileInfo[] = [];
|
|
66
66
|
let hasError = false;
|
|
67
67
|
|
|
68
|
-
//
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
// 收集项目表字段定义文件(如果目录存在)
|
|
69
|
+
if (existsSync(projectTableDir)) {
|
|
70
|
+
for await (const file of tablesGlob.scan({
|
|
71
|
+
cwd: projectTableDir,
|
|
72
|
+
absolute: true,
|
|
73
|
+
onlyFiles: true
|
|
74
|
+
})) {
|
|
75
|
+
allTableFiles.push({
|
|
76
|
+
file: file,
|
|
77
|
+
typeCode: 'project',
|
|
78
|
+
typeName: '项目'
|
|
79
|
+
});
|
|
80
|
+
}
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
// 收集 addon 表字段定义文件
|
|
@@ -83,6 +85,11 @@ export const checkTable = async function (): Promise<boolean> {
|
|
|
83
85
|
for (const addonName of addons) {
|
|
84
86
|
const addonTablesDir = getAddonDir(addonName, 'tables');
|
|
85
87
|
|
|
88
|
+
// 检查 addon tables 目录是否存在
|
|
89
|
+
if (!existsSync(addonTablesDir)) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
|
|
86
93
|
for await (const file of tablesGlob.scan({
|
|
87
94
|
cwd: addonTablesDir,
|
|
88
95
|
absolute: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.15",
|
|
4
4
|
"description": "Befly - 为 Bun 专属打造的 TypeScript API 接口框架核心引擎",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"es-toolkit": "^1.41.0",
|
|
66
66
|
"pathe": "^2.0.3"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "4607bf1cc0f31705a9c25bc7abdc3cba383e567c"
|
|
69
69
|
}
|