standard-engine
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -45,3 +45,4 @@ module.exports = Cli | ||
console.error(opts.cmd + ': ' + opts.formatter) | ||
process.exit(1) | ||
process.exitCode = 1 | ||
return | ||
} | ||
@@ -51,3 +52,4 @@ if (typeof opts.formatter !== 'object' || | ||
console.error(opts.cmd + ': Invalid formatter API') | ||
process.exit(0) | ||
process.exitCode = 0 | ||
return | ||
} | ||
@@ -93,3 +95,4 @@ } | ||
}), opts.cmd, fmtMsg) | ||
process.exit(0) | ||
process.exitCode = 0 | ||
return | ||
} | ||
@@ -99,3 +102,4 @@ | ||
console.log(opts.version) | ||
process.exit(0) | ||
process.exitCode = 0 | ||
return | ||
} | ||
@@ -132,3 +136,6 @@ | ||
if (err) return onError(err) | ||
if (!result.errorCount && !result.warningCount) process.exit(0) | ||
if (!result.errorCount && !result.warningCount) { | ||
process.exitCode = 0 | ||
return | ||
} | ||
@@ -151,3 +158,4 @@ console.error( | ||
process.exit(result.errorCount ? 1 : 0) | ||
process.exitCode = result.errorCount ? 1 : 0 | ||
return | ||
} | ||
@@ -162,3 +170,4 @@ | ||
) | ||
process.exit(1) | ||
process.exitCode = 1 | ||
return | ||
} | ||
@@ -165,0 +174,0 @@ |
{ | ||
"name": "standard-engine", | ||
"description": "Wrap your standards in a tortilla and cover it in special sauce.", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"author": "Dan Flettre <flettre@gmail.com> (http://twitter.com/flettre/)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
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
28774
476