Skip to content

Commit c9fbe2a

Browse files
Merge pull request ubaniabalogun#6 from ubaniabalogun/new-zipper
Moved from zip-dir to zip-local
2 parents ce8a5fe + f2db93f commit c9fbe2a

File tree

3 files changed

+83
-3
lines changed

3 files changed

+83
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const _ = require('lodash');
55
const Fse = require('fs-extra');
66
const Path = require('path');
77
const ChildProcess = require('child_process');
8-
const zipdir = require('zip-dir');
8+
const zipper = require('zip-local');
99

1010
BbPromise.promisifyAll(Fse);
1111

@@ -157,7 +157,7 @@ class PkgPyFuncs {
157157
requirements = _.concat(requirements, this.globalRequirements)
158158
}
159159
_.forEach(requirements, (req) => { this.installRequirements(buildPath,req)})
160-
zipdir(buildPath, { saveTo: `${buildPath}.zip`}, (err,buffer) => {} )
160+
zipper.sync.zip(buildPath).compress().save(`${buildPath}.zip`)
161161
}
162162

163163
constructor(serverless, options) {

package-lock.json

Lines changed: 80 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"bluebird": "^3.5.0",
1111
"fs-extra": "^3.0.0",
1212
"lodash": "^4.17.4",
13-
"zip-dir": "^1.0.2"
13+
"zip-local": "^0.3.4"
1414
},
1515
"repository": {
1616
"type": "git",

0 commit comments

Comments
 (0)