fixpack
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -24,7 +24,7 @@ #!/usr/bin/env node | ||
required.forEach(function(key) { | ||
if (!pack[key]) | ||
if (pack[key] == null) | ||
throw new Error(config.fileName + ' files must have a ' + key) | ||
}) | ||
warnItems.forEach(function(key) { | ||
if (!pack[key] && !config.quiet) console.log(chalk.yellow('missing ' + key)) | ||
if (pack[key] == null && !config.quiet) console.log(chalk.yellow('missing ' + key)) | ||
}) | ||
@@ -66,3 +66,3 @@ } | ||
config.sortToTop.forEach(function(key) { | ||
if (pack[key]) out[key] = pack[key] | ||
if (pack[key] != null) out[key] = pack[key] | ||
delete pack[key] | ||
@@ -85,3 +85,3 @@ }) | ||
config.sortedSubItems.forEach(function(key) { | ||
if (out[key]) out[key] = sortAlphabetically(out[key]) | ||
if (out[key] != null) out[key] = sortAlphabetically(out[key]) | ||
}) | ||
@@ -88,0 +88,0 @@ |
{ | ||
"name": "fixpack", | ||
"description": "cli tool that cleans up package.json files.", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -6,0 +6,0 @@ "bin": "./bin/fixpack", |
@@ -112,2 +112,3 @@ # fixpack | ||
- 3.0.6 - Fix `false` removal issue. | ||
- 3.0.5 - Fix coloration of warnings | ||
@@ -114,0 +115,0 @@ - 3.0.4 - OS specific EOL |
8062
133