mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 23:24:21 +00:00
refactor(monorepo): decouple api and webui into workspaces packages
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user