size-limit
Advanced tools
Comparing version 8.1.1 to 8.1.2
10
bin.js
#!/usr/bin/env node | ||
let ciJobNumber = require('ci-job-number') | ||
let { yellow } = require('picocolors') | ||
if (ciJobNumber() !== 1) { | ||
process.stderr.write( | ||
yellow('Size Limit runs only on first CI job, to save CI resources\n') | ||
) | ||
process.exit(0) | ||
} | ||
require('./run.js')(process) |
{ | ||
"name": "size-limit", | ||
"version": "8.1.1", | ||
"version": "8.1.2", | ||
"description": "CLI tool for Size Limit", | ||
@@ -23,6 +23,4 @@ "keywords": [ | ||
"chokidar": "^3.5.3", | ||
"ci-job-number": "^1.2.2", | ||
"globby": "^11.1.0", | ||
"lilconfig": "^2.0.6", | ||
"mkdirp": "^1.0.4", | ||
"nanospinner": "^1.1.0", | ||
@@ -29,0 +27,0 @@ "picocolors": "^1.0.0" |
@@ -1,4 +0,3 @@ | ||
let { writeFile } = require('fs').promises | ||
let { writeFile, mkdir } = require('fs').promises | ||
let { join } = require('path') | ||
let mkdirp = require('mkdirp') | ||
@@ -23,3 +22,3 @@ module.exports = async function processImport(check, output) { | ||
} | ||
await mkdirp(output) | ||
await mkdir(output, { recursive: true }) | ||
let entry = join(output, 'index.js') | ||
@@ -26,0 +25,0 @@ await writeFile(entry, loader) |
@@ -77,3 +77,3 @@ let { createSpinner } = require('nanospinner') | ||
let calcAndShow = async () => { | ||
let outputFunc = isJsonOutput ? null : createSpinner | ||
let outputFunc = isJsonOutput || isSilentMode ? null : createSpinner | ||
await calc(plugins, config, outputFunc) | ||
@@ -80,0 +80,0 @@ debug.results(process, args, config) |
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
6
31598
872
- Removedci-job-number@^1.2.2
- Removedmkdirp@^1.0.4
- Removedci-job-number@1.2.2(transitive)
- Removedmkdirp@1.0.4(transitive)