diff --git a/CHANGELOG.md b/CHANGELOG.md index a8f2247d..e0fd81cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## v1.4.1 (Oct 6, 2016) +* Don't show warnings about skipped files by default (enable with --show-skipped). + ## v1.4.0 (Oct 6, 2016) * Show skipped files that can't be resolved as warnings (can be disabled with --no-warning). diff --git a/bin/cli.js b/bin/cli.js index c217b96d..3168c162 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -20,10 +20,10 @@ program .option('--dot', 'show graph using the DOT language') .option('--extensions ', 'comma separated string of valid file extensions') .option('--show-extension', 'include file extension in module name', false) + .option('--show-skipped', 'show warning about skipped files', false) .option('--require-config ', 'path to RequireJS config') .option('--webpack-config ', 'path to webpack config') .option('--no-color', 'disable color in output and image', false) - .option('--no-warning', 'disable warnings', false) .option('--stdin', 'read predefined tree from STDIN', false) .option('--debug', 'turn on debugĀ output', false) .parse(process.argv); @@ -154,7 +154,7 @@ new Promise((resolve, reject) => { return res; }) .then((res) => { - if (program.warning && !program.json) { + if (program.showSkipped && !program.json) { output.warnings(res); } }) diff --git a/lib/output.js b/lib/output.js index b0583ecb..ff5e394d 100644 --- a/lib/output.js +++ b/lib/output.js @@ -114,7 +114,7 @@ module.exports.warnings = function (res) { const skipped = res.warnings().skipped; if (skipped.length) { - console.log(red.bold('\nSkipped files due to errors:\n')); + console.log(red.bold('\nSkipped files:\n')); skipped.forEach((file) => { console.log(red(file));