Skip to content

Commit

Permalink
Allow setting of maxBuffer for packing external modules (v3) (#185)
Browse files Browse the repository at this point in the history
* Update packExternalModules.js

* Update package.json
  • Loading branch information
mhodgson authored and HyperBrain committed Aug 9, 2017
1 parent d3faf49 commit 8062264
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/packExternalModules.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ module.exports = {
const start = _.now();
npm.install(compositeModules, {
cwd: compositeModulePath,
maxBuffer: this.serverless.service.custom.packExternalModulesMaxBuffer || 200 * 1024,
save: true
}).then(() => {
this.options.verbose && this.serverless.cli.log(`Package took [${_.now() - start} ms]`); // eslint-disable-line promise/always-return
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"fs-extra": "^0.26.7",
"glob": "^7.1.2",
"lodash": "^4.17.4",
"npm-programmatic": "0.0.5",
"npm-programmatic": "^0.0.7",
"semver": "^5.4.1",
"ts-node": "^3.2.0"
},
Expand Down

0 comments on commit 8062264

Please sign in to comment.