move runMode from env to args. remove support of cli mode.

This commit is contained in:
geekgeekrun
2025-05-21 02:17:27 +08:00
parent 5174da2c6c
commit b57e646147
7 changed files with 36 additions and 45 deletions

View File

@@ -1,7 +1,3 @@
import * as path from 'node:path';
const isRunFromUi = Boolean(process.env.MAIN_BOSSGEEKGO_UI_RUN_MODE)
const isUiDev = process.env.NODE_ENV === 'development'
export function requireTypeorm () {
const importResult = require('typeorm')
return importResult