Skip to content

Commit

Permalink
update archive dependecy
Browse files Browse the repository at this point in the history
fixes: #1930
  • Loading branch information
canstudios-louisem committed Apr 4, 2018
1 parent d7a5ae7 commit cec3f05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"Nicola Willis <nicola.willis@canstudios.com>"
],
"dependencies": {
"archiver": "~0.16.0",
"archiver": "2.1.1",
"async": "2.5.0",
"bcrypt-nodejs": "0.0.3",
"body-parser": "^1.13.3",
Expand Down
8 changes: 2 additions & 6 deletions plugins/output/adapt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,7 @@ AdaptOutput.prototype.publish = function(courseId, mode, request, response, next
});

archive.pipe(output);

archive.bulk([
{ expand: true, cwd: path.join(BUILD_FOLDER), src: ['**/*'] },
]).finalize();

archive.glob('**/*', {cwd: path.join(BUILD_FOLDER)}).finalize();
} else {
// No download required -- skip this step
callback();
Expand Down Expand Up @@ -331,7 +327,7 @@ AdaptOutput.prototype.export = function (courseId, request, response, next) {
archive.on('error', callback);
output.on('close', callback);
archive.pipe(output);
archive.bulk([{ expand: true, cwd: exportDir, src: ['**/*'] }]).finalize();
archive.glob('**/*', {cwd: exportDir}).finalize();
}
],
function onDone(asyncError) {
Expand Down

0 comments on commit cec3f05

Please sign in to comment.