mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
parent
494e0d14a0
commit
167e1ead2e
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue