docs: README 新增使用该项目的开源项目

This commit is contained in:
szluyu99
2023-06-18 21:56:09 +08:00
parent 9edd0e5ad6
commit cad72b3b73
5 changed files with 22 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ import dotenv from 'dotenv'
/**
* * 项目根路径
* @descrition 结尾不带/
* @description 结尾不带/
*/
export function getRootPath() {
return path.resolve(process.cwd())
@@ -13,7 +13,7 @@ export function getRootPath() {
/**
* * 项目src路径
* @param srcName src目录名称(默认: "src")
* @descrition 结尾不带斜杠
* @description 结尾不带斜杠
*/
export function getSrcPath(srcName = 'src') {
return path.resolve(getRootPath(), srcName)