Skip to content

Commit 7955c6f

Browse files
authoredMay 5, 2018
fix: export Prisma object for JS generator
1 parent d6528f6 commit 7955c6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/PrismaGenerator.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ ${this.renderExports()}
2424
const { makePrismaBindingClass } = require('prisma-binding')`
2525
}
2626
renderExports() {
27-
return `module.exports = makePrismaBindingClass({typeDefs})`
27+
return `\
28+
const Prisma = makePrismaBindingClass({ typeDefs })
29+
module.exports = { Prisma }`
2830
}
2931
renderTypedefs() {
3032
return (

0 commit comments

Comments
 (0)
Please sign in to comment.