Skip to content

Commit

Permalink
🐛 Ignored node_modules dir when archiving (#10969)
Browse files Browse the repository at this point in the history
fixes #10929
  • Loading branch information
lunaticmonk authored and allouis committed Aug 6, 2019
1 parent 494e0d1 commit 167e1ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/server/lib/fs/zip-folder.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ module.exports = function zipFolder(folderToZip, destination, callback) {
archive.on('error', function (err) {
callback(err, null);
});

archive.directory(folderToZip, '/');
archive.glob(`**/*`, {
cwd: folderToZip,
ignore: ['node_modules/**']
});
archive.pipe(output);
archive.finalize();
};

0 comments on commit 167e1ea

Please sign in to comment.