Skip to content

Commit

Permalink
Fix svanderburg#253: exclude peerDependencies by default even using '…
Browse files Browse the repository at this point in the history
…--lock' flag
  • Loading branch information
AumyF committed Aug 11, 2021
1 parent 0c94281 commit 29b3b0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Package.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ Package.prototype.resolveDependenciesFromLockedDependencies = function(dependenc
callback();
} else if(self.deploymentConfig.stripOptionalDependencies && dependency.optional) { // When the stripping optional dependencies feature has been enabled, remove all optional dependencies
callback();
} else if (!self.deploymentConfig.includePeerDependencies && dependency.peer) { // When the including peer dependencies features has been disabled, remove all peer dependencies
callback();
} else if(self.production && dependency.dev) { // Development dependencies should not be included in production mode
callback();
} else {
Expand Down

0 comments on commit 29b3b0c

Please sign in to comment.