zappyzep/backend/src/paths.ts

10 lines
252 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({
2024-04-09 20:57:18 +03:00
cwd: import.meta.dirname,
}) as string;
2020-08-10 01:02:48 +03:00
export const backendDir = path.dirname(backendPackageJson);
export const rootDir = path.resolve(backendDir, "..");