zappyzep/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, "..");