46 lines
1.4 KiB
JSON
46 lines
1.4 KiB
JSON
{
|
||
"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/bun": "^1.0.25",
|
||
"@typescript-eslint/eslint-plugin": "^8.35.0",
|
||
"@typescript-eslint/parser": "^8.35.0",
|
||
"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",
|
||
"mysql2": "^3.14.1",
|
||
"pino": "^9.7.0",
|
||
"pino-pretty": "^13.0.0",
|
||
"pino-roll": "^3.1.0",
|
||
"undici": "^7.11.0"
|
||
},
|
||
"scripts": {
|
||
"dev": "bun --env-file=.env --hot src/server.ts",
|
||
"start": "bun --env-file=.env.prod src/server.ts",
|
||
"test": "bun test",
|
||
"vitest": "bun --env-file=.env x vitest run",
|
||
"test:watch": "bun test --watch",
|
||
"lint": "eslint . --ext .ts",
|
||
"lint:fix": "eslint . --ext .ts --fix",
|
||
"format": "prettier --write ."
|
||
}
|
||
}
|