@w3ltraumpirat AWS Lambda could provide at
least one officially maintained toolchain, maybe even as a service. Because not
only do you have to solve compilation and layering, but ideally also artifact
re-use. I wrote about my needs here:
https://coderbyheart.com/how-i-package-typescript-lambdas-for-aws
1 reply
@w3ltraumpirat I am working on a newer
version of that using esbuild. It takes a lambda handler file and resolves all
the npm dependencies and puts them in a layer, and bundles the dependencies from
within the project in the lambda ZIP file (as ES modules):
https://github.com/NordicSemiconductor/asset-tracker-cloud-memfault-aws-js/blob/89bba67e7f32921d49d20f611030261bc97f1e01/cdk/memfault-integration.ts#L47