5 lines
257 B
TypeScript
5 lines
257 B
TypeScript
|
|
import path from 'path';
|
||
|
|
// ROJECT_ROOT is set by electron/main.ts before starting the server.
|
||
|
|
// In ts-node mode __dirname is source/server/, so ../../ is the project root.
|
||
|
|
export const ROOT = process.env.ROJECT_ROOT ?? path.join( __dirname, '..', '..' );
|