refactor: Move backend to typescript

This commit is contained in:
2026-06-06 23:36:54 +05:30
parent 012db524cb
commit a1e01cfdc3
6 changed files with 817 additions and 42 deletions

View File

@@ -1,10 +1,12 @@
{
"name": "server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"description": "Brew Journal Backend",
"main": "dist/index.js",
"scripts": {
"start": "node index.js",
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsx watch src/index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
@@ -19,5 +21,15 @@
"express-rate-limit": "^8.5.2",
"jsonwebtoken": "^9.0.3",
"pg": "^8.21.0"
},
"devDependencies": {
"@types/bcrypt": "^5.0.2",
"@types/cors": "^2.8.17",
"@types/express": "^5.0.0",
"@types/jsonwebtoken": "^9.0.6",
"@types/node": "^20.11.24",
"@types/pg": "^8.11.2",
"typescript": "^5.3.3",
"tsx": "^4.7.1"
}
}