3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 06:11:49 +00:00
zeppelin/backend/src/paths.ts

9 lines
242 B
TypeScript

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