cursor-init/package.json
expressgy 541dd50ea3 feat: 用户登录
1. 同意HTTP返回类型,写方法
2. 优化错误拦截,返回正确的错误类型
3. 优化auth中的返回类型
2025-07-06 03:45:31 +08:00

65 lines
2.0 KiB
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": "cursor-init",
"version": "0.1.0",
"description": "Bun + Elysia 后端API项目支持MySQL、JWT、Swagger、Vitest等",
"author": "hotok <x71291@outlook.com>",
"license": "MIT",
"repository": {
"type": "gitea",
"url": "git+https://github.com/yourname/yourrepo.git"
},
"type": "module",
"private": true,
"engines": {
"bun": ">=1.0.25"
},
"devDependencies": {
"@types/bcrypt": "^5.0.2",
"@types/bun": "^1.0.25",
"@types/nodemailer": "^6.4.17",
"@types/redis": "^4.0.11",
"@types/winston": "^2.4.4",
"@typescript-eslint/eslint-plugin": "^8.35.0",
"@typescript-eslint/parser": "^8.35.0",
"drizzle-kit": "^0.31.4",
"eslint": "^9.29.0",
"eslint-config-prettier": "^10.1.5",
"prettier": "^3.6.2",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
},
"dependencies": {
"@elysiajs/jwt": "^1.3.1",
"@elysiajs/swagger": "^1.3.0",
"@types/ua-parser-js": "^0.7.39",
"bcrypt": "^6.0.0",
"canvas": "^3.1.2",
"chalk": "^5.4.1",
"drizzle-orm": "^0.44.2",
"jsonwebtoken": "^9.0.2",
"mysql2": "^3.14.1",
"nanoid": "^5.1.5",
"nodemailer": "^7.0.4",
"picocolors": "^1.1.1",
"redis": "^5.5.6",
"ua-parser-js": "^2.0.4",
"undici": "^7.11.0",
"winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0"
},
"scripts": {
"dev": "bun --env-file=.env src/server.ts",
"start": "bun --env-file=.env.prod src/server.ts",
"test": "bun test",
"test:watch": "bun test --watch",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"makeSQL": "drizzle-kit generate",
"makeEntity": "drizzle-kit introspect",
"syncDB": "drizzle-kit migrate",
"sqlV": "drizzle-kit studio"
}
}