size-limit
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -27,2 +27,3 @@ let { existsSync } = require('fs') | ||
` ${ y('--help') } Display this help`, | ||
` ${ y('--debug') } Show internal configs for issue report`, | ||
` ${ y('--version') } Display version` | ||
@@ -29,0 +30,0 @@ ) |
{ | ||
"name": "size-limit", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "CLI tool for Size Limit", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,2 +9,4 @@ let SizeLimitError = require('./size-limit-error') | ||
args.limit = argv[++i] | ||
} else if (arg === '--debug') { | ||
args.debug = true | ||
} else if (arg === '--save-bundle') { | ||
@@ -11,0 +13,0 @@ if (!plugins.has('webpack')) { |
@@ -9,2 +9,3 @@ let readPkgUp = require('read-pkg-up') | ||
let parseArgs = require('./parse-args') | ||
let debug = require('./debug') | ||
let calc = require('./calc') | ||
@@ -18,2 +19,3 @@ | ||
let help = createHelp(process) | ||
let config, args | ||
@@ -36,3 +38,3 @@ try { | ||
let args = parseArgs(plugins, process.argv) | ||
args = parseArgs(plugins, process.argv) | ||
if (plugins.isEmpty) { | ||
@@ -42,8 +44,11 @@ help.showMigrationGuide(pkg) | ||
} | ||
let config = await getConfig(plugins, process, args, pkg) | ||
config = await getConfig(plugins, process, args, pkg) | ||
await calc(plugins, config) | ||
debug.results(process, args, config) | ||
reporter.results(plugins, config) | ||
if (config.failed) process.exit(1) | ||
} catch (e) { | ||
debug.error(process, args, config) | ||
reporter.error(e) | ||
@@ -50,0 +55,0 @@ process.exit(1) |
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
19988
13
560