zappyzep/backend/src/paths.ts

10 lines
232 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,
});
export const backendDir = path.dirname(backendPackageJson);
export const rootDir = path.resolve(backendDir, "..");