已更新package.json以包含TypeScript编译步骤,并添加了对Express和Node.js的类型定义。这允许在项目中使用TypeScript编写代码,提供了更强的类型检查和更好的IDE集成体验。 此外,已删除多个不再需要的Node.js脚本和过时的控制器、服务和实用程序文件,以简化代码库并为其向TypeScript的迁移做准备。
29 lines
721 B
JSON
29 lines
721 B
JSON
{
|
|
"name": "web_zzyxyz",
|
|
"version": "1.0.1",
|
|
"description": "None",
|
|
"scripts": {
|
|
"build": "tsc && node ./dist/src/main.js",
|
|
"start": "ts-node ./src/main",
|
|
"dev": "nodemon --watch ./src/**/*.* --ext ts,js,json --exec \"ts-node ./src/main\"",
|
|
"err": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"author": "zzy",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"better-sqlite3": "^9.5.0",
|
|
"cookie-parser": "^1.4.6",
|
|
"dotenv": "^16.4.5",
|
|
"express": "^4.19.2",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"ws": "^8.17.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^4.17.21",
|
|
"@types/node": "^22.5.0",
|
|
"nodemon": "^3.1.4",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.5.4"
|
|
}
|
|
}
|