File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @keystone-6/core ' : minor
3+ ---
4+
5+ Fix Prisma errors not showing when a Prisma migration errors internally
Original file line number Diff line number Diff line change 1- import { type ChildProcess } from 'node:child_process'
21import { toSchemasContainer } from '@prisma/internals'
32
43// @ts -expect-error
@@ -62,9 +61,9 @@ export async function withMigrate<T> (
6261 }
6362 } )
6463 } finally {
65- const closePromise = new Promise < void > ( resolve => {
66- const { child } = migrate . engine as { child : ChildProcess }
67- child . once ( 'exit' , ( ) => resolve ( ) )
64+ const closePromise = new Promise < void > ( async ( resolve ) => {
65+ await migrate . engine . initPromise
66+ migrate . engine . child . once ( 'exit' , ( ) => resolve ( ) )
6867 } )
6968 migrate . stop ( )
7069 await closePromise
You can’t perform that action at this time.
0 commit comments