Add the session storage infrastructure for tracking correct answers during a game. Designed for easy swap to Valkey in Phase 4. - GameSessionStore interface with create/get/delete methods, all async to match the eventual Valkey implementation - InMemoryGameSessionStore backed by a Map - GameSessionData holds only the answer key (questionId → correctOptionId) - Also fix root build script to build packages in dependency order
16 lines
386 B
JSON
16 lines
386 B
JSON
{
|
|
"extends": "../../tsconfig.base.json",
|
|
"references": [
|
|
{ "path": "../../packages/shared" },
|
|
{ "path": "../../packages/db" },
|
|
],
|
|
"compilerOptions": {
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"outDir": "./dist",
|
|
"resolveJsonModule": true,
|
|
"rootDir": ".",
|
|
"types": ["vitest/globals"],
|
|
},
|
|
"include": ["src", "vitest.config.ts"],
|
|
}
|