Serverless Upgrades: `package.patterns` support
ryan-roemer opened this issue · 3 comments
- Serverless 3
- Review serverless pattern matching logic (has replaced nanomatch with https://github.com/micromatch/micromatch)
- Review and implement https://www.serverless.com/framework/docs/deprecations/#NEW_PACKAGE_PATTERNS
That would be so good! Because, after serverless 3 upgrade, all my lambdas functions are going up to AWS with the whole project.
Do you have any other alternative to fix this than this issue ?
Thanks.
Thanks for the comment @JonatanPotrikus. Are you using trace mode or legacy mode? We’re presently thinking of doing a new version that:
- supports serverless@3 only
- Only does trace mode as we think that’s the better, faster, slimmer future
In the meantime, it’s not great, but you can separately package with https://github.com/FormidableLabs/trace-pkg and then set the function “artifact” field to point to the separately packaged zips.
We’re hoping to tackle the above jetpack refactor in the coming weeks
Thanks @ryan-roemer for the feedback.
I'm using version "0.10.9" of JetPack and 3 of serverless. At the moment I am deploying the whole package together on all lambdas, because the package is not that big and the deploy speed is 80% faster with JetPack.
I didn't know about trace mode. I will take a closer look at this approach and test it, thanks.