Fix last update/version in !about

This commit is contained in:
Dragory 2020-08-10 01:02:48 +03:00
parent bcfaf1fee3
commit 8e37ca3609
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
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, "..");