From 9d600734d32c1595869b42328dbcff07d68027a1 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 28 Mar 2020 17:34:59 -0700 Subject: [PATCH] fix: remove description field requirement (#30) Fixes: https://github.com/nice-registry/nice-package/issues/27 Related: https://github.com/nice-registry/nice-package/pull/22 BREAKING CHANGE --- lib/clean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clean.js b/lib/clean.js index a49ca56..78047a1 100644 --- a/lib/clean.js +++ b/lib/clean.js @@ -18,7 +18,7 @@ module.exports = function clean (doc) { doc = normalize(doc) // add props from lastest release that are absent from the top level pkg = Object.assign({}, doc.versions[latest], doc) - } else if (doc.name && doc.description) { + } else if (doc.name) { // this is a basic object, i.e. a package.json file pkg = doc } else {