CI / build + unit + e2e (pull_request) Successful in 1m14s
- DELETE /api/games/:id route + Db.delete() (404 when absent) - PresetPicker: per-saved-game trash button + confirm dialog (Cancel/Delete) - App: runDeleteGame; useSse onError -> goHome on 'deleted'/'not found' (a deleted/missing game now returns the live tab and any deep link home) - DeleteGameResponse in shared/protocol.ts; api.deleteGame() - unit test (Db.delete) + 2 e2e tests (home-screen delete; in-flight delete returns the active tab home and a fresh deep link lands on home) - version 0.7.0 -> 0.8.0 + changelog Fixes #20
60 lines
1.8 KiB
JSON
60 lines
1.8 KiB
JSON
{
|
|
"name": "history",
|
|
"version": "0.8.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "AI-driven alternate-history simulator — the LLM is the world engine (Pax Historia style).",
|
|
"scripts": {
|
|
"dev": "concurrently -n server,client -c blue,magenta \"tsx watch server/index.ts\" \"vite\"",
|
|
"build": "vite build && tsup server/index.ts --format esm --target node22 --out-dir server/dist --external better-sqlite3",
|
|
"start": "node server/dist/index.js",
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint .",
|
|
"e2e": "playwright test"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-dialog": "^1.1.6",
|
|
"@radix-ui/react-label": "^2.1.2",
|
|
"@radix-ui/react-scroll-area": "^1.2.3",
|
|
"@radix-ui/react-select": "^2.1.7",
|
|
"@radix-ui/react-tabs": "^1.1.3",
|
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
"better-sqlite3": "^11.10.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cn": "^0.4.0",
|
|
"express": "^4.21.2",
|
|
"lucide-react": "^0.469.0",
|
|
"maplibre-gl": "^6.10.0",
|
|
"next-themes": "^0.4.6",
|
|
"radix-ui": "^1.7.0",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"sonner": "^1.7.4",
|
|
"tailwind-merge": "^3.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.20.0",
|
|
"@playwright/test": "^1.62.1",
|
|
"@tailwindcss/vite": "^4.1.4",
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"@types/express": "^4.17.25",
|
|
"@types/node": "^22.13.0",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^4.4.1",
|
|
"concurrently": "^9.1.0",
|
|
"eslint": "^9.20.0",
|
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
"globals": "^16.0.0",
|
|
"tailwindcss": "^4.1.4",
|
|
"tsup": "^8.3.5",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "~5.8.3",
|
|
"typescript-eslint": "^8.24.0",
|
|
"vite": "^6.3.5",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|