move aws-sdk package into devDependencies
See original GitHub issue$ git clone git@github.com:prisma/graphql-yoga.git
$ cd graphql-yoga
$ yarn
$ du -sh node_modules
165M node_modules
$ du -sh node_modules/aws-lambda
30M node_modules/aws-sdk
The aws-sdk
package is listed as a prod dependency but it is inexistent on src folder. As you can see from the script above, it takes a lot of disk space. How open are you guys into moving it into devDependencies? I can do the PR if you want.
Besides taking space, it became an issue when I discovered the AWS Lambda only allows unzipped bundles to be smaller than 250MB and aws-sdk
is the biggest chunk of it. Source: https://docs.aws.amazon.com/lambda/latest/dg/limits.html (see ‘AWS Lambda Deployment Limits’ section).
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:7 (1 by maintainers)
Top Results From Across the Web
move aws-sdk package into devDependencies · Issue #436
The aws-sdk package is listed as a prod dependency but it is inexistent on src folder. As you can see from the script...
Read more >Managing dependencies - AWS Documentation
Dependencies for your AWS CDK app or library are managed using package management tools. These tools are commonly used with the programming language...
Read more >node.js - Can aws-sdk be a development dependency when ...
Absolutely, the aws-sdk is available by default as an NPM dependency inside of the lambda containers so if you leave it as a...
Read more >Lambda Node Optimization. Set aws-sdk as dev ... - Nataraj
AWS Dev Packages ... npm install uglify-es -g; Move out Large Non-js files ... Set aws-sdk as dev dependency (this is a huge...
Read more >Configuration Options - Renovate Docs
Configuration Options¶. This document describes all the configuration options you may use in a Renovate configuration file. Any config you define applies to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Maybe I’m missing something, but experiencing this as an issue because
aws-lambda
is adependency
while@types/aws-lambda
is adevDependency
. So I’m getting this error when building my app:I think it should be a devDep as well