I have run against this problem a couple of times now and this I have decided to investigate.
So given that we are not using the zipService provided by the Serverless Framework to zip up our stuff we don't mimic (I guess by design) its standard behavior. That's unfortunate.
There are two solutions to this (but maybe more, open to suggestions):
- Make so that we use the
zipService above in index.js and then both lumo and lein would just reopen and append to the zip file.
- Reimplement the same behavior in both plugins.
I think option one is more work but also probably the right thing to do, but I am also wondering if there is a way not to skip the packaging step (just provide a custom zip name to it).
Any other idea?
I have run against this problem a couple of times now and this I have decided to investigate.
So given that we are not using the
zipServiceprovided by the Serverless Framework to zip up our stuff we don't mimic (I guess by design) its standard behavior. That's unfortunate.There are two solutions to this (but maybe more, open to suggestions):
zipServiceabove inindex.jsand then bothlumoandleinwould just reopen and append to the zip file.I think option one is more work but also probably the right thing to do, but I am also wondering if there is a way not to skip the packaging step (just provide a custom zip name to it).
Any other idea?