Skip to content

Commit

Permalink
fix(core): normalize migration target versions when sorting migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Feb 23, 2024
1 parent 21e7648 commit 30914b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nx/src/command-line/migrate/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,9 @@ export async function executeMigrations(
return 1;
}

return lt(a.version, b.version) ? -1 : 1;
return lt(normalizeVersion(a.version), normalizeVersion(b.version))
? -1
: 1;
});

for (const m of sortedMigrations) {
Expand Down

0 comments on commit 30914b0

Please sign in to comment.