refactor(monorepo): decouple api and webui into workspaces packages

This commit is contained in:
yiling
2026-06-01 23:35:00 +08:00
parent e3f4fa219e
commit 1f341c15d0
288 changed files with 18024 additions and 21178 deletions
+12 -3
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bun
import { temporalWorkflow } from './src/workflow/bun-temporal-plugin'
import { temporalWorkflow } from './packages/workflow-core/src/bun-temporal-plugin'
import { bunPluginPino } from 'bun-plugin-pino'
import tailwindPlugin from 'bun-plugin-tailwind'
import { existsSync } from 'fs'
@@ -16,7 +16,7 @@ if (existsSync(outdir)) {
}
await Bun.build({
entrypoints: ['./src/index.ts'],
entrypoints: ['./packages/api/src/index.ts'],
target: 'bun',
outdir: outdir,
minify: false,
@@ -27,7 +27,7 @@ await Bun.build({
if (!config.resolve) config.resolve = {}
if (!config.resolve.alias) config.resolve.alias = {}
// @ts-ignore
config.resolve.alias['@'] = resolve(process.cwd(), 'src')
config.resolve.alias['@'] = resolve(process.cwd(), 'packages')
return config
},
},
@@ -40,6 +40,15 @@ await Bun.build({
'@temporalio/client',
'@temporalio/worker',
'@temporalio/workflow',
'@shumai/core',
'@shumai/db',
'@shumai/dtos',
'@shumai/workflow-core',
'@shumai/agent',
'@shumai/transcode',
'@shumai/worker-db',
'@shumai/api',
'@shumai/webui',
],
// compile: {
// outfile: 'Shumai',