Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: motdotla/node-lambda
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 007c5ecfa1e50d76ebb318f5b9a7dd89d0dd8aa7
Choose a base ref
..
head repository: motdotla/node-lambda
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 28d58741617641ffbe6eb0d8d4ac5fd44d4edd99
Choose a head ref
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/main.js
7 changes: 3 additions & 4 deletions lib/main.js
Original file line number Diff line number Diff line change
@@ -685,11 +685,10 @@ they may not work as expected in the Lambda environment.
await this._cleanDirectory(codeDirectory, program.keepNodeModules)
console.log('=> Moving files to temporary directory')
await this._fileCopy(program, lambdaSrcDirectory, codeDirectory, true)
if (program.keepNodeModules) {
return
if (!program.keepNodeModules) {
console.log(`=> Running npm ${this._shouldUseNpmCi(codeDirectory) ? 'ci' : 'install'} --production`)
await this._npmInstall(program, codeDirectory)
}
console.log(`=> Running npm ${this._shouldUseNpmCi(codeDirectory) ? 'ci' : 'install'} --production`)
await this._npmInstall(program, codeDirectory)
await this._postInstallScript(program, codeDirectory)
console.log('=> Zipping deployment package')
return this._zip(program, codeDirectory)