3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 01:05:02 +00:00

Fix last update/version in !about

This commit is contained in:
Dragory 2020-08-10 01:02:48 +03:00
parent dbd365768b
commit 1ad545f515
4 changed files with 25 additions and 5 deletions

9
backend/src/paths.ts Normal file
View file

@ -0,0 +1,9 @@
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, "..");