Skip to content

Commit

Permalink
Merge pull request #30 from isochronous/master
Browse files Browse the repository at this point in the history
Add `createSubFolders` option, default to `true`
  • Loading branch information
sindresorhus committed Jul 25, 2014
2 parents 166d8ea + cef4167 commit 5165100
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ module.exports = function (filename, opts) {
var pathname = file.relative.replace(/\\/g, '/');

zip.file(pathname, file.contents, {
date: file.stat ? file.stat.mtime : new Date()
date: file.stat ? file.stat.mtime : new Date(),
createFolders: true
});

cb();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"chalk": "^0.4.0",
"gulp-util": "^2.2.0",
"jszip": "^2.3.0",
"jszip": "^2.4.0",
"through2": "^0.5.1"
},
"devDependencies": {
Expand Down

0 comments on commit 5165100

Please sign in to comment.