Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to peer dependencies and fix test #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elthrasher
Copy link
Contributor

Fixes #4

I noticed this project had pinned CDK dependencies to 1.120.0. When those are listed as direct dependencies, all consumers of the lib need to use that exact version. It's a bummer for CDK which will be fixed with the 2.0 version. For now, it's a better practice to list those dependencies as peerDependencies which lets the consumer install their own versions and warns them if they don't (npm 7 does this instead).

Also looks like some churn in the test snapshots. You might get more stability using the NodejsFunction construct.

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.

peerDependencies
1 participant