feat: Add combined start script, correct backend path, and allow nullable poll event.

This commit is contained in:
Yusuf İpek
2025-12-28 18:46:52 +03:00
parent 0ae6014886
commit 19b412a82a
2 changed files with 28 additions and 27 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ export type ContinuationState = {
export type ChatEventEmitter = EventEmitter<{ export type ChatEventEmitter = EventEmitter<{
message: (message: ChatMessage) => void; message: (message: ChatMessage) => void;
poll: (poll: Poll) => void; poll: (poll: Poll | null) => void;
error: (error: unknown) => void; error: (error: unknown) => void;
}>; }>;
+2 -1
View File
@@ -12,7 +12,8 @@
"build": "pnpm build:backend && pnpm build:client", "build": "pnpm build:backend && pnpm build:client",
"build:backend": "tsc -p backend/tsconfig.build.json", "build:backend": "tsc -p backend/tsconfig.build.json",
"build:client": "next build client", "build:client": "next build client",
"start:backend": "node backend/dist/index.js", "start": "concurrently \"pnpm start:backend\" \"pnpm start:client\"",
"start:backend": "node backend/dist/backend/src/index.js",
"start:client": "next start client", "start:client": "next start client",
"lint": "next lint client" "lint": "next lint client"
}, },