size-limit
Advanced tools
Comparing version 4.5.7 to 4.6.0
@@ -33,2 +33,3 @@ let { bold: b, yellow: y, red } = require('colorette') | ||
` ${y('--json')} Show results in JSON format`, | ||
` ${y('--hide-passed')} Print only failed tests`, | ||
` ${y('--help')} Display this help`, | ||
@@ -35,0 +36,0 @@ ` ${y('--watch')} Runs in watch mode`, |
@@ -70,2 +70,4 @@ let { green, red, yellow, bgRed, black, bold, gray } = require('colorette') | ||
for (let check of config.checks) { | ||
if (check.passed && config.hidePassed) continue | ||
let unlimited = typeof check.passed === 'undefined' | ||
@@ -72,0 +74,0 @@ let rows = [] |
@@ -21,3 +21,4 @@ let { isAbsolute, dirname, join, relative } = require('path') | ||
disableModuleConcatenation: 'webpack', | ||
brotli: 'webpack' | ||
brotli: 'webpack', | ||
hidePassed: false | ||
} | ||
@@ -91,2 +92,5 @@ | ||
} | ||
if (args.hidePassed) { | ||
config.hidePassed = args.hidePassed | ||
} | ||
@@ -93,0 +97,0 @@ if (args.files.length > 0) { |
{ | ||
"name": "size-limit", | ||
"version": "4.5.7", | ||
"version": "4.6.0", | ||
"description": "CLI tool for Size Limit", | ||
@@ -27,5 +27,5 @@ "keywords": [ | ||
"globby": "^11.0.1", | ||
"ora": "^5.0.0", | ||
"ora": "^5.1.0", | ||
"read-pkg-up": "^7.0.1" | ||
} | ||
} |
@@ -29,2 +29,4 @@ let SizeLimitError = require('./size-limit-error') | ||
args.cleanDir = true | ||
} else if (arg === '--hide-passed') { | ||
args.hidePassed = true | ||
} else if (arg === '--why') { | ||
@@ -31,0 +33,0 @@ if (!plugins.has('webpack')) { |
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
25028
703
Updatedora@^5.1.0