serverless-lambda-prune-plugin
serverless-lambda-prune-plugin copied to clipboard
Serverless 0.1.x compatibility
With the changes to Serverless 0.1.x this doesn't work out-of-the-box anymore. However, I could easily fix this by changing the last few lines of index.js from this:
return this.S.validateProject()
.bind(_this)
.then(function() {
return _this.evt;
})
.then(_this._listLambdas);
to this:
return _this._listLambdas(_this.evt);
My understanding is that this should work perfectly fine. I can do a pull request if you like though I wasn't sure if I missed something.
Please check this out on the newest version, and if it works for you, close the issue.