fix(build): 添加 postinstall 钩子自动生成 Prisma Client

生产环境 next build 类型检查报 birthdayOwner 不存在于
CustomerCreateManyInput,根因是 schema 新增字段后未在生产重新
执行 prisma generate。postinstall 保证每次 npm install 自动生成。

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-12 20:43:53 +08:00
co-authored by Claude
parent 63901b6de1
commit ece8edce8a
+1
View File
@@ -9,6 +9,7 @@
"lint": "next lint",
"prisma:pull": "prisma db pull",
"prisma:generate": "prisma generate",
"postinstall": "prisma generate",
"seed": "tsx prisma/seed.ts"
},
"dependencies": {