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
30 lines
702 B
JSON
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"
|
|
}
|
|
}
|