question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`excludeDevDependencies: true` seems pointless and time-consuming

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
agutolicommented, Jul 31, 2019

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

0reactions
agutolicommented, Jul 30, 2019

Thanks for your contribution.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found