postcss-log-warnings
Advanced tools
Comparing version 0.1.2 to 0.1.3
# Changelog | ||
## v0.1.3 | ||
- Add message when exiting process with code 1 to clarify reason. | ||
## v0.1.2 | ||
@@ -4,0 +7,0 @@ - Only log if there is something to log (don't log undefined). |
'use strict'; | ||
var postcss = require('postcss'); | ||
var chalk = require('chalk'); | ||
var processResult = require('./lib/processResult'); | ||
@@ -22,3 +23,6 @@ | ||
process.on('exit', function() { | ||
if (exitCode) process.exit(exitCode); | ||
if (!exitCode) return; | ||
console.log(chalk.red.bold('\n** PostCSS warnings were logged **')); | ||
process.exit(exitCode); | ||
}); |
{ | ||
"name": "postcss-log-warnings", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Log PostCSS warnings in the console", | ||
@@ -26,3 +26,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"eslint": "0.18.0", | ||
"eslint": "0.20.0", | ||
"tape": "4.0.0" | ||
@@ -29,0 +29,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
49409
200