Skip to content

Commit

Permalink
Make manifest items ordered to prevent re-uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbuijs committed Apr 1, 2016
1 parent 9310b6f commit 21e9531
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
var hashQueue = prepareFilesHashQueue(files);

async.parallelLimit(hashQueue, 10, function (err, result) {
result.sort(function (a, b) {
return a.file.localeCompare(b.file);
});
var json = JSON.stringify(result, null, 2);
var manifestFile = chcpContext.manifestFilePath;

Expand Down
3 changes: 3 additions & 0 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
var hashQueue = prepareFilesHashQueue(files);

async.parallelLimit(hashQueue, 10, function(err, result) {
result.sort((a, b) => {
return a.file.localeCompare(b.file)
});
var json = JSON.stringify(result, null, 2);
var manifestFile = chcpContext.manifestFilePath;

Expand Down

0 comments on commit 21e9531

Please sign in to comment.