토너먼트 준비

This commit is contained in:
2026-01-23 16:45:36 +00:00
parent 835886c7a9
commit 2d87cf881e
19 changed files with 744 additions and 4 deletions
+6 -2
View File
@@ -4,6 +4,7 @@ import { fileURLToPath } from 'node:url';
import { runGameApiServer } from './server.js';
import { runBattleSimWorker } from './battleSim/worker.js';
import { runAuctionWorker } from './auction/worker.js';
import { runTournamentWorker } from './tournament/worker.js';
export * from './config.js';
export * from './context.js';
@@ -26,6 +27,7 @@ export * from './auction/types.js';
export * from './auction/keys.js';
export * from './auction/scheduler.js';
export * from './auction/worker.js';
export * from './tournament/worker.js';
// Types for TRPC consumer
export type { MessageView } from './messages/store.js';
@@ -49,8 +51,10 @@ if (isMain()) {
role === 'battle-sim-worker'
? runBattleSimWorker
: role === 'auction-worker'
? runAuctionWorker
: runGameApiServer;
? runAuctionWorker
: role === 'tournament-worker'
? runTournamentWorker
: runGameApiServer;
run().catch((error) => {
console.error('[game-api] failed to start', error);
process.exitCode = 1;