fix(medusa): migrations cli should also pull from ${plugin}/dist (#3956)
* fix(medusa): migrations should also pull from dist * chore: add changeset
This commit is contained in:
5
.changeset/odd-tables-hang.md
Normal file
5
.changeset/odd-tables-hang.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
fix(medusa): migrations cli should look for migrations in plugin dist folder
|
||||
@@ -162,6 +162,11 @@ export default (directory, featureFlagRouter) => {
|
||||
const exists = existsSync(`${p.resolve}/migrations`)
|
||||
if (exists) {
|
||||
migrationDirs.push(`${p.resolve}/migrations/*.js`)
|
||||
continue
|
||||
}
|
||||
const distExists = existsSync(`${p.resolve}/dist/migrations`)
|
||||
if (distExists) {
|
||||
migrationDirs.push(`${p.resolve}/dist/migrations/*.js`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user