refactor: bare structure for new backend architecture and runtime; no behavior changes yet

This commit is contained in:
Haileyesus
2026-03-12 14:17:12 +03:00
parent b54cdf8168
commit e67738c9fc
40 changed files with 10316 additions and 9 deletions

View File

@@ -0,0 +1,20 @@
import path from 'path';
import { fileURLToPath } from 'url';
import type { RuntimePaths } from '../shared/types/app.js';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export function getRuntimePaths(): RuntimePaths {
const serverSrcDir = path.resolve(__dirname, '..');
const serverDir = path.resolve(serverSrcDir, '..');
return {
serverSrcDir,
serverDir,
projectRoot: path.resolve(serverDir, '..'),
legacyRuntimePath: path.join(serverDir, 'legacy-runtime.js'),
bootstrapEntrypointPath: path.join(serverDir, 'dist', 'bootstrap.js'),
};
}