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

Add keepNodeModules option in package #472

Merged
merged 2 commits into from
Nov 27, 2018
Merged

Conversation

akofman
Copy link
Contributor

@akofman akofman commented Nov 22, 2018

Hello,

Depending on your lambda dependencies, npm install could be really slow to execute.
Furthermore, in the case of a docker build, these dependencies are installed each time we package our lambda (because of the codeDirectory which is cleaned and mounted in /var/task).

So I added the keepNodeModules option in order to skip the npm i step for cases where we don’t need to reinstall all the dependencies if we don’t add any new module.
Also I put this option to false by default in order to not disturb the actual behaviour.

Thx again for this project !

@akofman akofman force-pushed the master branch 3 times, most recently from 24e96c7 to 28e296d Compare November 23, 2018 16:30
Copy link
Collaborator

@DeviaVir DeviaVir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the usecase, and it's documented well. 👍

@DeviaVir DeviaVir merged commit be25c21 into motdotla:master Nov 27, 2018
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.

2 participants