修改后端启动方式

This commit is contained in:
2025-02-16 23:28:51 +08:00
parent b51605cec9
commit 42d6179680
2 changed files with 112 additions and 11 deletions

View File

@@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "ts-node src/index.ts"
"start": "tsc && node dist/index.js"
},
"keywords": [],
"author": "",
@@ -19,7 +19,6 @@
"@types/pg": "^8.11.11",
"ali-oss": "^6.21.0",
"jsonwebtoken": "^9.0.2",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
},
"dependencies": {
@@ -27,7 +26,6 @@
"axios": "^1.7.5",
"cors": "^2.8.5",
"express": "^4.19.2",
"pg": "^8.13.3",
"sharp": "^0.33.5"
"pg": "^8.13.3"
}
}