refactor(projects): 代码优化

This commit is contained in:
Soybean
2022-04-27 19:01:54 +08:00
parent e8488e4d52
commit a782461453
20 changed files with 174 additions and 138 deletions

View File

@ -1,3 +1,2 @@
export * from './path';
export * from './define';
export * from './proxy';

View File

@ -1,15 +0,0 @@
import { fileURLToPath } from 'url';
/**
* 解析路径
* @param basePath - 基础路径
*/
export function resolvePath(rootPath: string, basePath: string) {
const root = fileURLToPath(new URL(rootPath, basePath));
const src = `${root}src`;
return {
root,
src
};
}