ruoyi-plus-soybean/build/config/path.ts

16 lines
287 B
TypeScript
Raw Normal View History

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,
};
}