Files
pokopiawiki.tootaio.com/backend/package.json
xiaomai 590bd6a0ae build: optimize Dockerfiles for production and pin dependencies
Implement multi-stage build and static server for frontend
Run containers as non-root user and set production environment
Pin all package dependencies to exact versions
2026-05-03 15:35:00 +08:00

30 lines
702 B
JSON

{
"name": "@pokopia/backend",
"version": "0.1.0",
"private": true,
"packageManager": "pnpm@10.33.2",
"type": "module",
"scripts": {
"dev": "tsx watch src/server.ts",
"start": "tsx src/server.ts",
"build": "tsc --noEmit",
"lint": "tsc --noEmit",
"typecheck": "tsc --noEmit",
"test": "node --test --import tsx tests/*.test.ts"
},
"dependencies": {
"@fastify/cors": "11.2.0",
"@fastify/multipart": "10.0.0",
"@fastify/rate-limit": "10.3.0",
"@fastify/static": "9.1.3",
"fastify": "5.8.5",
"pg": "8.20.0"
},
"devDependencies": {
"@types/node": "25.6.0",
"@types/pg": "8.20.0",
"tsx": "4.21.0",
"typescript": "6.0.3"
}
}