diff --git a/lib/Package.js b/lib/Package.js index 9a6f0b7..b4ba170 100644 --- a/lib/Package.js +++ b/lib/Package.js @@ -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 {