Fix last update/version in !about
This commit is contained in:
parent
bcfaf1fee3
commit
8e37ca3609
4 changed files with 25 additions and 5 deletions
9
backend/src/paths.ts
Normal file
9
backend/src/paths.ts
Normal 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, "..");
|
Loading…
Add table
Add a link
Reference in a new issue