`excludeDevDependencies: true` seems pointless and time-consuming
See original GitHub issueI don’t see the point of this. From what I understand, the existing node_modules folder will be ignored completely and will be installed using customInstallationCommand
, which for me is yarn -p
. Having excludeDevDependencies
set to true will only spend computing time on something that will be package ignored.
I was able to save 10+ seconds setting this flag to false.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
serverless framework - How to use excludeDevDependencies?
After some time, I found that you just need to add node_modules and ... To include is excludeDevDependencies: true is optional because it...
Read more >AWS Lambda Guide - Serverless.yml Reference
Can only be true if API Gateway is inside a stack. ... Time to live for cached authorizer results, accepts values from 0...
Read more >How to use excludeDevDependencies - Anycodings.com
I made a sample to test this config. Here is my serverless.yml: service: exclude-development-dependencies provider: name: google ...
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 FreeTop 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
Top GitHub Comments
Done! Now it’s setting
excludeDevDependencies = false
automatically.Thank you for the suggestion!
https://github.com/agutoli/serverless-layers/blob/master/src/index.js#L166
Thanks for your contribution.