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

10 lines
242 B
TypeScript
Raw Normal View History

2020-08-10 01:02:48 +03:00
import path from "path";
import pkgUp from "pkg-up";
const backendPackageJson = pkgUp.sync({
cwd: __dirname,
}) as string;
2020-08-10 01:02:48 +03:00
export const backendDir = path.dirname(backendPackageJson);
export const rootDir = path.resolve(backendDir, "..");