fix: migration dirs
This commit is contained in:
1 parent
7887ca90d9
commit
e764d8e465
1 file changed
+4
-2
@@ -110,9 +110,11 @@ export default directory => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const migrationDirs = []
|
const migrationDirs = []
|
||||||
const coreMigrations = path.resolve(__dirname, "../migrations")
|
const coreMigrations = path.resolve(
|
||||||
|
path.join(__dirname, "..", "..", "migrations")
|
||||||
|
)
|
||||||
|
|
||||||
migrationDirs.push(`${coreMigrations}/*.js`)
|
migrationDirs.push(path.join(coreMigrations, "*.js"))
|
||||||
|
|
||||||
for (const p of resolved) {
|
for (const p of resolved) {
|
||||||
const exists = existsSync(`${p.resolve}/migrations`)
|
const exists = existsSync(`${p.resolve}/migrations`)
|
||||||
|
|||||||
Reference in new issue
Block a user