File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
schema/src/plugins/enhancer/enhance Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 7474 "default" : " ./model-meta.js"
7575 },
7676 "./models" : {
77- "types" : " ./models.d.ts"
77+ "types" : " ./models.d.ts" ,
78+ "default" : " ./models.js"
7879 },
7980 "./zod-utils" : {
8081 "types" : " ./zod-utils.d.ts" ,
Original file line number Diff line number Diff line change 1- export type * from '.zenstack/models' ;
1+ export * from '.zenstack/models' ;
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export class EnhancerGenerator {
122122 // reexport PrismaClient types (original or fixed)
123123 const modelsDts = this . project . createSourceFile (
124124 path . join ( this . outDir , 'models.d.ts' ) ,
125- `export type * from '${ resultPrismaTypeImport } ';` ,
125+ `export * from '${ resultPrismaTypeImport } ';` ,
126126 { overwrite : true }
127127 ) ;
128128 await modelsDts . save ( ) ;
You can’t perform that action at this time.
0 commit comments