Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add keepNodeModules option in package#472

Merged
DeviaVir merged 2 commits intomotdotla:mastermotdotla/node-lambda:masterfrom
akofman:masterakofman/node-lambda:masterCopy head branch name to clipboard
Nov 27, 2018
Merged

Add keepNodeModules option in package#472
DeviaVir merged 2 commits intomotdotla:mastermotdotla/node-lambda:masterfrom
akofman:masterakofman/node-lambda:masterCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.