agutoli / serverless-layers

Serverless.js plugin implementing AWS Lambda Layers, reducing lambda size, warm-up, and deployment time.
MIT License
229 stars 53 forks source link

excluding "aws-dk" broken the build #150

Closed zmw85 closed 4 months ago

zmw85 commented 8 months ago

AWS no longer includes "aws-sdk" in Lambda nodejs18 runtime any more, for my project to run on nodejs18 and still using "aws-sdk" (v2) I need to include it in the dependencies. Current version 2.7.0 has broken my build as "aws-sdk" has been excluded from the lambda layer by default nodejs "layerOptimization.cleanupPatterns" list.

Can we remove "aws-sdk" from the default list and leave it to be handled by the packager? I can create a PR if you want me to.

zmw85 commented 8 months ago

created a PR: https://github.com/agutoli/serverless-layers/pull/151 for you to consider.

agutoli commented 4 months ago

New release serverless-layers@2.8.5