Files
liandong-crm/package.json
T
luishouandClaude ece8edce8a fix(build): 添加 postinstall 钩子自动生成 Prisma Client
生产环境 next build 类型检查报 birthdayOwner 不存在于
CustomerCreateManyInput,根因是 schema 新增字段后未在生产重新
执行 prisma generate。postinstall 保证每次 npm install 自动生成。

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 20:43:53 +08:00

44 lines
1.1 KiB
JSON

{
"name": "crm-new",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev -p 3100",
"build": "next build",
"start": "next start -H 0.0.0.0 -p 3100",
"lint": "next lint",
"prisma:pull": "prisma db pull",
"prisma:generate": "prisma generate",
"postinstall": "prisma generate",
"seed": "tsx prisma/seed.ts"
},
"dependencies": {
"@prisma/client": "^6.11.0",
"bcryptjs": "^2.4.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.469.0",
"lunar-typescript": "^1.8.6",
"next": "^15.3.0",
"next-auth": "^5.0.0-beta.25",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"recharts": "^3.9.2",
"sonner": "^2.0.7",
"tailwind-merge": "^2.6.0",
"xlsx": "^0.18.5",
"zod": "^3.24.1"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.0.0",
"@types/bcryptjs": "^2.4.6",
"@types/node": "^22.10.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"prisma": "^6.11.0",
"tailwindcss": "^4.0.0",
"tsx": "^4.19.2",
"typescript": "^5.7.0"
}
}