Skip to content

Commit a30519d

Browse files
committed
Fix order of release modules.
1 parent 56ebdb9 commit a30519d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

grunt/tasks/modularize.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@ module.exports = function (grunt) {
5555
.uniq()
5656
.without(name)
5757
.sort((a, b) => {
58-
return options[a].components.indexOf(b) === -1 ? -1 : 1;
58+
if (options[a].components.includes(b)) {
59+
return 1
60+
}
61+
62+
if (options[b].components.includes(a)) {
63+
return -1
64+
}
65+
66+
return 0;
5967
})
6068
.value();
6169

0 commit comments

Comments
 (0)