timboudreau / nb-nodejs

NodeJS support for NetBeans, originally hosted on netbeans.org
MIT License
91 stars 12 forks source link

empty entries in properties window should be removed from package.json #12

Closed yohny closed 10 years ago

yohny commented 11 years ago

if in properties window you delete some values (like bug tracker, author, keywords etc.) they are put in package.json but contain empty string as values. I makes no sense to have such entries there, preferred is that if value is empty than given entry should not be in package.json at all, because the you end up with result like:

"author" : {
    "name" : "",
    "email" : ""
  },
"keywords" : [ "" ],
"bugs" : {
    "web" : "null"
  }

which is useless, better to avoid given keys completely than have them empty

timboudreau commented 10 years ago

Fixed in version 2.15 which can be found here