generated from nhcarrigan/template
acda4c2fc4
- Add @types/node to API devDependencies
- Create HonoEnv type and apply to all routers + auth middleware for
proper context.get/set("discordId") typing
- Use conditional spreads for exactOptionalPropertyTypes dailyChallenges
in GameContext, tick engine, and prestige route
- Use conditional spread for optional signature in SaveRequest calls
- Add non-null assertions in shuffle/template index for noUncheckedIndexedAccess
- Cast GameState to never for Prisma InputJsonValue fields
- Exclude vite.config.ts from web tsconfig (it runs in Node context)
33 lines
897 B
JSON
33 lines
897 B
JSON
{
|
|
"name": "@elysium/api",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./prod/src/index.js",
|
|
"scripts": {
|
|
"build": "prisma generate && tsc -p tsconfig.json",
|
|
"db:push": "prisma db push",
|
|
"dev": "op run --env-file=./prod.env -- tsx watch src/index.ts",
|
|
"lint": "eslint --max-warnings 0 src",
|
|
"start": "op run --env-file=./prod.env -- node prod/src/index.js",
|
|
"test": "vitest run --coverage"
|
|
},
|
|
"dependencies": {
|
|
"@elysium/types": "workspace:*",
|
|
"@hono/node-server": "1.13.7",
|
|
"@prisma/client": "6.5.0",
|
|
"hono": "4.7.4",
|
|
"prisma": "6.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@nhcarrigan/eslint-config": "5.2.0",
|
|
"@nhcarrigan/typescript-config": "4.0.0",
|
|
"@types/node": "25.3.5",
|
|
"@vitest/coverage-v8": "3.0.8",
|
|
"eslint": "9.22.0",
|
|
"tsx": "4.19.3",
|
|
"typescript": "5.8.2",
|
|
"vitest": "3.0.8"
|
|
}
|
|
}
|