size-limit
Advanced tools
Comparing version 11.1.4 to 11.1.5
import bytes from 'bytes-iec' | ||
import { globby } from 'globby' | ||
import { lilconfig } from 'lilconfig' | ||
@@ -7,2 +6,3 @@ import { createRequire } from 'node:module' | ||
import { fileURLToPath, pathToFileURL } from 'node:url' | ||
import { glob } from 'tinyglobby' | ||
@@ -158,3 +158,4 @@ import { SizeLimitError } from './size-limit-error.js' | ||
if (check.path) { | ||
processed.files = await globby(check.path, { cwd: config.cwd }) | ||
let patterns = Array.isArray(check.path) ? check.path : [check.path] | ||
processed.files = await glob(patterns, { cwd: config.cwd }) | ||
} else if (!check.entry) { | ||
@@ -161,0 +162,0 @@ if (pkg.packageJson.main) { |
@@ -77,3 +77,3 @@ /** | ||
* It could be a path `"index.js"`, a | ||
* {@link https://github.com/sindresorhus/globby#globbing-patterns pattern} | ||
* {@link https://github.com/SuperchupuDev/tinyglobby pattern} | ||
* `"dist/app-*.js"` or an array | ||
@@ -80,0 +80,0 @@ * `["index.js", "dist/app-*.js", "!dist/app-exclude.js"]`. |
{ | ||
"name": "size-limit", | ||
"version": "11.1.4", | ||
"version": "11.1.5", | ||
"description": "CLI tool for Size Limit", | ||
@@ -29,8 +29,8 @@ "type": "module", | ||
"chokidar": "^3.6.0", | ||
"globby": "^14.0.1", | ||
"jiti": "^1.21.0", | ||
"lilconfig": "^3.1.1", | ||
"jiti": "^1.21.6", | ||
"lilconfig": "^3.1.2", | ||
"nanospinner": "^1.1.0", | ||
"picocolors": "^1.0.1" | ||
"picocolors": "^1.1.0", | ||
"tinyglobby": "^0.2.6" | ||
} | ||
} |
@@ -49,3 +49,3 @@ import chokidar from 'chokidar' | ||
let help = createHelp(process) | ||
let config, args | ||
let args, config | ||
@@ -52,0 +52,0 @@ try { |
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
35672
989
+ Addedtinyglobby@^0.2.6
+ Addedfdir@6.4.2(transitive)
+ Addedpicomatch@4.0.2(transitive)
+ Addedtinyglobby@0.2.10(transitive)
- Removedglobby@^14.0.1
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removed@sindresorhus/merge-streams@2.3.0(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedglobby@14.0.2(transitive)
- Removedignore@5.3.2(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedpath-type@5.0.0(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedslash@5.1.0(transitive)
- Removedunicorn-magic@0.1.0(transitive)
Updatedjiti@^1.21.6
Updatedlilconfig@^3.1.2
Updatedpicocolors@^1.1.0