From ece8edce8ac21dfcf280949bcab4597b99949950 Mon Sep 17 00:00:00 2001 From: luishou Date: Sun, 12 Jul 2026 20:43:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20=E6=B7=BB=E5=8A=A0=20postinstall?= =?UTF-8?q?=20=E9=92=A9=E5=AD=90=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=20Pri?= =?UTF-8?q?sma=20Client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 生产环境 next build 类型检查报 birthdayOwner 不存在于 CustomerCreateManyInput,根因是 schema 新增字段后未在生产重新 执行 prisma generate。postinstall 保证每次 npm install 自动生成。 Co-Authored-By: Claude --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 5dcdb19..f81e658 100644 --- a/package.json +++ b/package.json @@ -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": {