koa-ts-core 0.0.13 → 0.0.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/README.md +2 -9
- package/dist/index.cjs.js +8 -8
- package/dist/index.esm.js +7 -7
- package/dist/utils/path.d.ts +11 -0
- package/package.json +2 -2
package/dist/utils/path.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { FilePathMeta, WalkSyncHandler } from '../types/route';
|
|
2
|
+
/**
|
|
3
|
+
* 获取入口模块路径
|
|
4
|
+
* @returns 模块路径对象
|
|
5
|
+
*/
|
|
6
|
+
export declare const getEntryPath: () => string;
|
|
2
7
|
/**
|
|
3
8
|
* 获取 src 模块的路径
|
|
4
9
|
* @returns 模块路径对象
|
|
@@ -44,3 +49,9 @@ export declare const formatPathByPlatform: (filePath: string) => string;
|
|
|
44
49
|
* @returns {boolean} 文件是否存在
|
|
45
50
|
*/
|
|
46
51
|
export declare function ensureFileExists(filePath: string, content?: string): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* 检查文件夹是否存在
|
|
54
|
+
* @param targetPath - 目标路径
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
export declare function folderExists(targetPath: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koa-ts-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "koa-ts-core",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -53,4 +53,4 @@
|
|
|
53
53
|
"node": ">=14.0.0"
|
|
54
54
|
},
|
|
55
55
|
"packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad"
|
|
56
|
-
}
|
|
56
|
+
}
|