Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit ef98a93

Browse files
fix(files): don't expect a specific sorting of files
1 parent 695b0e5 commit ef98a93

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/files.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,11 @@ module.exports = (common) => {
378378
next()
379379
}
380380
}, () => {
381+
files = files.sort((a, b) => {
382+
if (a.path > b.path) return 1
383+
if (a.path < b.path) return -1
384+
return 0
385+
})
381386
// Check paths
382387
var paths = files.map((file) => {
383388
return file.path

0 commit comments

Comments
 (0)