init-package-json
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -25,3 +25,9 @@ | ||
var es = readJson.extraSet | ||
readJson.extraSet = es.filter(function (fn) { | ||
return fn.name !== 'authors' && fn.name !== 'mans' | ||
}) | ||
readJson(package, function (er, d) { | ||
readJson.extraSet = es | ||
if (er) pkg = {} | ||
@@ -48,3 +54,11 @@ else pkg = d | ||
}) | ||
// only do a few of these. | ||
// no need for mans or contributors if they're in the files | ||
var es = readJson.extraSet | ||
readJson.extraSet = es.filter(function (fn) { | ||
return fn.name !== 'authors' && fn.name !== 'mans' | ||
}) | ||
readJson.extras(package, pkg, function (er, pkg) { | ||
readJson.extraSet = es | ||
if (er) return cb(er, pkg) | ||
@@ -51,0 +65,0 @@ pkg = unParsePeople(pkg) |
{ | ||
"name": "init-package-json", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "init-package-json.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11415
286