Files
nodejs/exam/backend/package.json
T
2026-08-21 11:19:36 +08:00

35 lines
826 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "backend",
"version": "1.0.0",
"description": "后端服务脚手架(TypeScript + Express)",
"main": "dist/index.js",
"type": "commonjs",
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc",
"start": "node dist/index.js",
"test": "tsc --noEmit && echo '✓ 后端测试通过'",
"typecheck": "tsc --noEmit",
"lint": "echo 'TODO: configure linter'"
},
"keywords": [],
"author": "",
"license": "ISC",
"engines": {
"node": ">=20.19.0"
},
"devDependencies": {
"@types/cors": "^2.8.19",
"@types/express": "^5.0.6",
"@types/node": "^26.1.1",
"nodemon": "^3.1.14",
"tsx": "^4.23.1",
"typescript": "^7.0.2"
},
"dependencies": {
"cors": "^2.8.6",
"dotenv": "^17.4.2",
"express": "^5.2.1",
"mysql2": "^3.11.0"
}
}