befly-tpl 3.4.1 → 3.4.3
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/package.json +3 -6
- package/checks/demo.ts +0 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-tpl",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "Befly 3.0 TypeScript Template",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -10,10 +10,7 @@
|
|
|
10
10
|
"scripts": {},
|
|
11
11
|
"files": [
|
|
12
12
|
"apis",
|
|
13
|
-
"checks",
|
|
14
|
-
"plugins",
|
|
15
13
|
"tables",
|
|
16
|
-
"tests",
|
|
17
14
|
".env.development",
|
|
18
15
|
".npmrc",
|
|
19
16
|
"befly.service",
|
|
@@ -26,10 +23,10 @@
|
|
|
26
23
|
],
|
|
27
24
|
"type": "module",
|
|
28
25
|
"dependencies": {
|
|
29
|
-
"befly": "^3.4.
|
|
26
|
+
"befly": "^3.4.2"
|
|
30
27
|
},
|
|
31
28
|
"engines": {
|
|
32
29
|
"bun": ">=1.3.0"
|
|
33
30
|
},
|
|
34
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "62974502c25562f83b840c5fe1d831dbf6476255"
|
|
35
32
|
}
|
package/checks/demo.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 示例项目检查
|
|
3
|
-
* 这是一个演示如何编写项目级别检查的示例文件
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { Logger } from 'befly';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 检查示例
|
|
10
|
-
* @returns 检查是否通过
|
|
11
|
-
*/
|
|
12
|
-
export default async function (): Promise<boolean> {
|
|
13
|
-
try {
|
|
14
|
-
Logger.info('执行项目示例检查...');
|
|
15
|
-
|
|
16
|
-
// 这里可以添加项目特定的检查逻辑
|
|
17
|
-
// 例如:检查必需的环境变量、检查文件是否存在等
|
|
18
|
-
|
|
19
|
-
Logger.info('项目示例检查通过');
|
|
20
|
-
return true;
|
|
21
|
-
} catch (error: any) {
|
|
22
|
-
Logger.error('项目示例检查失败', error);
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
}
|