Skip to content

Commit 8937c04

Browse files
committed
fix: switch to ts generator
1 parent f3fe6dc commit 8937c04

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

platforms-serverless/firebase-functions/functions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PrismaClient, Prisma } from '@prisma/client'
1+
import { PrismaClient, Prisma } from './generated/client/client'
22
import { PrismaPg } from '@prisma/adapter-pg'
33

44
import * as functions from 'firebase-functions'

platforms-serverless/firebase-functions/functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "npm run shell",
99
"deploy": "firebase deploy --only functions",
1010
"logs": "firebase functions:log",
11-
"gcp-build": "CI=1 && PRISMA_TELEMETRY_INFORMATION='ecosystem-tests platforms/firebase-functions postinstall' && npx prisma generate"
11+
"gcp-build": "CI=1 && PRISMA_TELEMETRY_INFORMATION='ecosystem-tests platforms/firebase-functions'"
1212
},
1313
"dependencies": {
1414
"@prisma/client": "7.1.0-dev.9",

platforms-serverless/firebase-functions/functions/prisma/schema.prisma

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
generator client {
2-
provider = "prisma-client-js"
2+
provider = "prisma-client"
3+
output = "../generated/client"
34
}
45

56
datasource db {

0 commit comments

Comments
 (0)