3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-07 02:57:20 +00:00
zeppelin/backend/src/paths.ts
2024-04-09 20:57:18 +03:00

9 lines
252 B
TypeScript

import path from "path";
import pkgUp from "pkg-up";
const backendPackageJson = pkgUp.sync({
cwd: import.meta.dirname,
}) as string;
export const backendDir = path.dirname(backendPackageJson);
export const rootDir = path.resolve(backendDir, "..");