Skip to content

Commit

Permalink
update archiver v1.3.0 -> v2.1.1 and fix archive.bulk() deprecation w…
Browse files Browse the repository at this point in the history
…arning
  • Loading branch information
piwonesien committed Mar 17, 2018
1 parent 7186582 commit 89b074b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,9 @@ module.exports = {
}
else
{
filesBulk.push({
src: file.src,
data: { name: path.basename(file.dest) },
expand: true,
flatten: true,
dest: path.dirname(file.dest)
});
archive.file(file.src, {name: file.dest});
}
});
archive.bulk(filesBulk);

// Some logs
archive.on('entry', function (file) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"tape": "~4.9.0"
},
"dependencies": {
"archiver": "^1.3.0",
"archiver": "^2.1.1",
"boxen": "^1.1.0",
"chalk": "^2.3.2",
"deprecate": "~1.0.0",
Expand Down

0 comments on commit 89b074b

Please sign in to comment.