Skip to content

Conversation

@rshade
Copy link
Contributor

@rshade rshade commented Jan 10, 2025

aws-lambda is a poorly-named
package
which is a CLI tool to deploy Lambda functions and includes heavy dependencies (the entire v2 aws-sdk).

It also incidentally includes types for Lambda events.

The correct package for Lambda event types is @types/aws-lambda as per the
docs.

This PR adds the correct devDependency and removes the dependency on aws-lambda

`aws-lambda` is a [poorly-named
package](https://www.npmjs.com/package/aws-lambda) which is a CLI tool
to deploy Lambda functions and includes heavy dependencies (the entire
v2 `aws-sdk`).

It also incidentally includes types for Lambda events.

The correct package for Lambda event types is `@types/aws-lambda` as per
the
[docs](https://docs.aws.amazon.com/lambda/latest/dg/typescript-handler.html).

This PR adds the correct devDependency and removes the dependency on
`aws-lambda`

Co-authored-by: Richard Shade <131337+rshade@users.noreply.github.com>
@rshade rshade enabled auto-merge (squash) January 10, 2025 22:29
Copy link
Contributor

@zbuchheit zbuchheit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rshade rshade merged commit 930cd74 into master Jan 11, 2025
41 checks passed
@rshade rshade deleted the types/aws-lambda branch January 11, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants