fix: fix script migrations order

This commit is contained in:
Pedro Guzman
2025-07-21 19:33:24 +02:00
parent 0a43009580
commit 1f2cefa68e

View File

@@ -139,6 +139,7 @@ export abstract class Migrator {
cwd: basePath,
ignore: ["**/index.{js,ts}", "**/*.d.ts"],
})
scriptFiles.sort((a, b) => a.localeCompare(b))
if (!scriptFiles?.length) {
continue