diff --git a/packages/prisma/package.json b/packages/prisma/package.json index d04b86537..a842fe5a9 100644 --- a/packages/prisma/package.json +++ b/packages/prisma/package.json @@ -6,6 +6,7 @@ "license": "MIT", "scripts": { "build": "prisma generate", + "prebuild": "prisma generate", "format": "prisma format", "clean": "rimraf node_modules", "post-install": "prisma generate", diff --git a/turbo.json b/turbo.json index 2b84e14ae..583ffdf65 100644 --- a/turbo.json +++ b/turbo.json @@ -3,6 +3,7 @@ "pipeline": { "build": { "dependsOn": [ + "prebuild", "^build" ], "outputs": [ @@ -10,6 +11,12 @@ "!.next/cache/**" ] }, + "prebuild": { + "cache": false, + "dependsOn": [ + "^prebuild" + ] + }, "lint": { "cache": false }, @@ -126,4 +133,4 @@ "E2E_TEST_AUTHENTICATE_USER_EMAIL", "E2E_TEST_AUTHENTICATE_USER_PASSWORD" ] -} \ No newline at end of file +}