befly 3.8.6 → 3.8.7
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 +8 -2
- package/package.json +2 -2
package/check.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
import { basename, relative } from 'pathe';
|
|
7
7
|
import { join } from 'node:path';
|
|
8
|
-
import { existsSync } from 'node:fs';
|
|
8
|
+
import { existsSync, mkdirSync } from 'node:fs';
|
|
9
9
|
import { isPlainObject } from 'es-toolkit/compat';
|
|
10
10
|
import { Logger } from './lib/logger.js';
|
|
11
|
-
import { projectTableDir, projectApiDir } from './paths.js';
|
|
11
|
+
import { projectTableDir, projectApiDir, projectDir } from './paths.js';
|
|
12
12
|
import { scanAddons, getAddonDir, addonDirExists } from './util.js';
|
|
13
13
|
import type { FieldDefinition } from './types/common.d.ts';
|
|
14
14
|
|
|
@@ -337,6 +337,12 @@ export const checkApp = async function (): Promise<boolean> {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
+
// 检查并创建 logs 目录
|
|
341
|
+
const logsDir = join(projectDir, 'logs');
|
|
342
|
+
if (!existsSync(logsDir)) {
|
|
343
|
+
mkdirSync(logsDir, { recursive: true });
|
|
344
|
+
}
|
|
345
|
+
|
|
340
346
|
return true;
|
|
341
347
|
} catch (error: any) {
|
|
342
348
|
Logger.error('项目结构检查过程中出错', error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.7",
|
|
4
4
|
"description": "Befly - 为 Bun 专属打造的 TypeScript API 接口框架核心引擎",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"es-toolkit": "^1.41.0",
|
|
70
70
|
"pathe": "^2.0.3"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "3e6ce16b6c78088419b5b6fba22080537458f5f5"
|
|
73
73
|
}
|