cursor-init/package.json
expressgy 5b0b37ef78 chore: 项目初始化相关配置与文档归档优化
- Prettier 配置迁移为 .prettierrc.cjs,解决 ESM/CJS 兼容问题
- 优化 package.json,补全元信息、整理依赖、完善 Bun 热更新脚本
- 归档项目初始化 PRD 与任务清单到 tasks/archive,并加日期前缀
- 同步代码风格与格式化配置,提升团队协作一致性

归档文件:tasks/archive/20240610-prd-项目初始化.md, tasks/archive/20240610-tasks-prd-项目初始化.md
2025-06-28 02:03:40 +08:00

42 lines
1.2 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/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",
"undici": "^7.11.0"
},
"scripts": {
"dev": "bun --hot src/server.ts",
"start": "bun src/server.ts",
"test": "bun test",
"test:watch": "bun test --watch",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"format": "prettier --write ."
}
}