feat(transaction): 添加游戏事务系统 | add game transaction system (#381)
- TransactionManager/TransactionContext 事务管理 - MemoryStorage/RedisStorage/MongoStorage 存储实现 - CurrencyOperation/InventoryOperation/TradeOperation 内置操作 - SagaOrchestrator 分布式 Saga 编排 - withTransactions() Room 集成 - 完整中英文文档
This commit is contained in:
12
packages/framework/transaction/tsup.config.ts
Normal file
12
packages/framework/transaction/tsup.config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineConfig } from 'tsup'
|
||||
import { runtimeOnlyPreset } from '../../tools/build-config/src/presets/plugin-tsup'
|
||||
|
||||
export default defineConfig({
|
||||
...runtimeOnlyPreset({
|
||||
external: ['ioredis', 'mongodb'],
|
||||
}),
|
||||
tsconfig: 'tsconfig.build.json',
|
||||
// tsup 的 DTS bundler 无法正确解析 workspace 包的类型继承链
|
||||
// tsup's DTS bundler cannot correctly resolve workspace package type inheritance
|
||||
dts: false,
|
||||
})
|
||||
Reference in New Issue
Block a user