lib/papers/dependency_specification/npm_package.rb in papers-1.3.1 vs lib/papers/dependency_specification/npm_package.rb in papers-1.3.2
- old
+ new
@@ -33,9 +33,11 @@
private
def self.package
pkg = File.read(Papers.config.npm_package_json_path)
JSON.parse(pkg)
+ rescue Errno::ENOENT
+ {}
end
end
end