Fix AWS dependencies - shrinks this package by 60% #576
This package currently depends on aws-lambda, which depends on aws-sdk, which is a massive package (41MB, before dependencies).
This is only used in
Unfortunately, aws-lambda is a production dependency of this package, and @types/aws-lambda is a development dependency, which means:
This PR fixes both together by swapping the dependencies around. Doing a quick local test, for me locally this reduces the installed size of this package from 72MB to 29MB, and fixes this TypeScript issue.