diff --git a/packages/prisma/package.json b/packages/prisma/package.json index 80a3824288..d5ce8af9a9 100644 --- a/packages/prisma/package.json +++ b/packages/prisma/package.json @@ -13,7 +13,7 @@ "db-setup": "run-s db-up db-deploy db-seed", "db-studio": "yarn prisma studio", "db-up": "docker-compose up -d", - "deploy": "run-s build db-deploy", + "deploy": "yarn prisma migrate deploy", "dx": "yarn db-setup", "generate-schemas": "prisma generate && prisma format", "postinstall": "yarn generate-schemas" diff --git a/turbo.json b/turbo.json index a530b9e3af..07060b9e06 100644 --- a/turbo.json +++ b/turbo.json @@ -8,6 +8,7 @@ "outputs": ["zod/**"] }, "@calcom/prisma#db-deploy": { + "cache": false, "dependsOn": ["$DATABASE_URL"] }, "@calcom/prisma#db-reset": { @@ -20,6 +21,7 @@ "@calcom/web#build": { "dependsOn": [ "^build", + "@calcom/prisma#build", "$CALENDSO_ENCRYPTION_KEY", "$CRON_API_KEY", "$DAILY_API_KEY", @@ -92,7 +94,9 @@ "db-deploy": {}, "db-seed": {}, "deploy": { - "dependsOn": ["@calcom/web#build"] + "cache": false, + "dependsOn": ["@calcom/web#build"], + "outputs": [] }, "clean": { "cache": false