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

This commit is contained in:
geekgeekrun
2025-05-21 02:18:04 +08:00
parent 02667fe2f8
commit 217b2bbf2a
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