refactor(projects): 代码优化

This commit is contained in:
Soybean
2022-07-16 00:13:19 +08:00
parent 872bb84502
commit 6143605297
24 changed files with 107 additions and 104 deletions

View File

@ -2,7 +2,7 @@ import path from 'path';
/**
* 获取项目根路径
* @descrition 尾不带斜杠
* @descrition 尾不带斜杠
*/
export function getRootPath() {
return path.resolve(process.cwd());
@ -11,7 +11,7 @@ export function getRootPath() {
/**
* 获取项目src路径
* @param srcName - src目录名称(默认: "src")
* @descrition 尾不带斜杠
* @descrition 尾不带斜杠
*/
export function getSrcPath(srcName = 'src') {
const rootPath = getRootPath();