fix: resolve paths using require.resolve (#9665)
This commit is contained in:
1 parent
d3c1580c06
commit
1e0f6188ec
2 files changed
+4
-2
No files matched your search
@@ -420,7 +420,7 @@ export async function loadModuleMigrations(
|
||||
key: provider.id,
|
||||
},
|
||||
resolutionPath: isString(provider.resolve)
|
||||
? provider.resolve
|
||||
? require.resolve(provider.resolve, { paths: [process.cwd()] })
|
||||
: false,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user