Specify aws-sdk only as peer dependency - #36
Conversation
Kudos, SonarCloud Quality Gate passed!
|
specious
commented
Jun 12, 2022
Also, as a heads up, npm 8 automatically changes |
Sleavely
commented
Jun 14, 2022
Since the behavior changed in npm v7 I'm not sure what the best approach would be anymore - I marked |
specious
commented
Jun 14, 2022
That's exactly what I figured. From the latest docs: "As of npm v7, peerDependencies are installed by default."
Same thing. I'm in the process of testing it out to see if I can use it in earthstewards/littermap-aws-backend, in particular because it might take care of batch requests. |
specious
commented
Jun 15, 2022
Works like a charm. |
Sleavely
commented
Jun 18, 2022
Status update: I haven't forgotten this pull request, but I'm unsure if the proposed changes are the appropriate course of action to maintain the behavior I'd like.
I don't think it is - if we continue to rely on I've been procrastinating dealing with npm 7+ for a long time because from what I can tell they don't account for scenarios like this one where we explicitly do not want to install I would prefer to keep As far as |
Sleavely
commented
Mar 8, 2024
I did eventually forget about this PR. Sorry about that! With the upcoming 2.0 release there will be an explicit dependency on |








If
aws-sdkis declared as a peer dependency it probably makes little sense to also have it listed as a dev dependency.