- 添加 ESLint 和 Prettier 配置以统一代码风格 - 配置项目级 TypeScript 设置 - 更新前后端依赖版本 - 修复代码格式问题(引号、分号、尾随逗号等) - 优化文件结构和导入路径
33 lines
889 B
JSON
33 lines
889 B
JSON
{
|
|
"name": "backend",
|
|
"version": "0.1.0",
|
|
"main": "src/index.ts",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun --hot src/index.ts",
|
|
"start": "NODE_ENV=production bun src/index.ts",
|
|
"start:dist": "bun run dist/server",
|
|
"build": "bun build --compile --minify-whitespace --minify-syntax --target bun --outfile dist/server src/index.ts",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"typecheck": "bun --bun tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@elysiajs/cors": "^1.0.0",
|
|
"@elysiajs/eden": "^1.0.0",
|
|
"@libsql/client": "^0.17.0",
|
|
"@prisma/adapter-libsql": "^7.4.2",
|
|
"@prisma/client": "^7.4.2",
|
|
"better-auth": "^1.5.4",
|
|
"dotenv": "^17.3.1",
|
|
"elysia": "^1.0.0",
|
|
"prisma": "^7.4.2"
|
|
},
|
|
"devDependencies": {
|
|
"@prisma/config": "^7.4.2",
|
|
"@types/bun": "latest",
|
|
"eslint": "^10.0.3"
|
|
}
|
|
}
|