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

Fix #253: exclude peerDependencies by default even using '--lock' flag #254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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