mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-05 15:44:28 +00:00
update
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#!/usr/bin/env bun
|
||||
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'
|
||||
import { rm } from 'fs/promises'
|
||||
import { resolve } from 'path'
|
||||
import { temporalWorkflow } from './packages/workflow-core/src/bun-temporal-plugin'
|
||||
|
||||
console.log('\n🚀 Starting build process...\n')
|
||||
|
||||
@@ -17,20 +17,13 @@ if (existsSync(outdir)) {
|
||||
|
||||
await Bun.build({
|
||||
entrypoints: ['./packages/api/src/index.ts'],
|
||||
root: 'packages',
|
||||
target: 'bun',
|
||||
outdir: outdir,
|
||||
minify: false,
|
||||
plugins: [
|
||||
temporalWorkflow({
|
||||
bundleOptions: {
|
||||
webpackConfigHook: (config) => {
|
||||
if (!config.resolve) config.resolve = {}
|
||||
if (!config.resolve.alias) config.resolve.alias = {}
|
||||
// @ts-ignore
|
||||
config.resolve.alias['@'] = resolve(process.cwd(), 'packages')
|
||||
return config
|
||||
},
|
||||
},
|
||||
bundleOptions: {},
|
||||
}),
|
||||
tailwindPlugin,
|
||||
bunPluginPino({ transports: ['pino-pretty'] }),
|
||||
@@ -40,15 +33,6 @@ 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