lib/papers/dependency_specification/npm_package.rb in papers-2.2.0 vs lib/papers/dependency_specification/npm_package.rb in papers-2.3.0
- old
+ new
@@ -5,10 +5,11 @@
def self.introspected
full_introspected_entries.map {|e| "#{e['name']}-#{e['version']}"}
end
def self.full_introspected_entries
- packages = (package['dependencies'] || {}).merge((package['devDependencies'] || {}))
+ packages = (package['dependencies'] || {})
+ packages.merge!((package['devDependencies'] || {})) unless Papers.config.ignore_npm_dev_dependencies
packages.map do |name, version|
# FIXME: This version cleanup is inadequate for npm version specifiers, which may be git or
# tarball URLs.
version.sub!(/^\D+/, '')
{