@@ -110,10 +110,14 @@ export class EnhancerGenerator {
110110        const  prismaImport  =  getPrismaClientImportSpec ( this . outDir ,  this . options ) ; 
111111        let  prismaTypesFixed  =  false ; 
112112        let  resultPrismaBaseImport  =  prismaImport ; 
113+         let  resultPrismaClientImport  =  prismaImport ; 
113114
114115        if  ( this . needsLogicalClient )  { 
115116            prismaTypesFixed  =  true ; 
116117            resultPrismaBaseImport  =  LOGICAL_CLIENT_GENERATION_PATH ; 
118+             if  ( this . isNewPrismaClientGenerator )  { 
119+                 resultPrismaClientImport  =  `${ LOGICAL_CLIENT_GENERATION_PATH }  ; 
120+             } 
117121            const  result  =  await  this . generateLogicalPrisma ( ) ; 
118122            dmmf  =  result . dmmf ; 
119123        } 
@@ -133,7 +137,7 @@ export class EnhancerGenerator {
133137            } ) ; 
134138            this . saveSourceFile ( enumsTs ) ; 
135139
136-             const  clientTs  =  this . project . createSourceFile ( path . join ( this . outDir ,  'client.ts' ) ,  `export * from '${ resultPrismaBaseImport } /client ';` ,  { 
140+             const  clientTs  =  this . project . createSourceFile ( path . join ( this . outDir ,  'client.ts' ) ,  `export * from '${ resultPrismaClientImport }  ,  { 
137141                overwrite : true , 
138142            } ) ; 
139143            this . saveSourceFile ( clientTs ) ; 
163167
164168${ 
165169    prismaTypesFixed  
166-         ? this . createLogicalPrismaImports ( prismaImport ,  resultPrismaTypeImport ,  target )  
170+         ? this . createLogicalPrismaImports ( prismaImport ,  resultPrismaClientImport ,  target )  
167171        : this . createSimplePrismaImports ( prismaImport ,  target )  
168172} 
169173
0 commit comments