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:
@@ -9,6 +9,7 @@
|
|||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"prisma:pull": "prisma db pull",
|
"prisma:pull": "prisma db pull",
|
||||||
"prisma:generate": "prisma generate",
|
"prisma:generate": "prisma generate",
|
||||||
|
"postinstall": "prisma generate",
|
||||||
"seed": "tsx prisma/seed.ts"
|
"seed": "tsx prisma/seed.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user