size-limit
Advanced tools
Comparing version 4.9.0 to 4.9.1
let { isAbsolute, dirname, join, relative } = require('path') | ||
let { cosmiconfig } = require('cosmiconfig') | ||
let { lilconfig } = require('lilconfig') | ||
let globby = require('globby') | ||
@@ -102,3 +102,3 @@ let bytes = require('bytes') | ||
} else { | ||
let explorer = cosmiconfig('size-limit', { | ||
let explorer = lilconfig('size-limit', { | ||
searchPlaces: [ | ||
@@ -120,14 +120,15 @@ 'package.json', | ||
result.config.map(async check => { | ||
let processed = { ...check } | ||
if (check.path) { | ||
check.files = await globby(check.path, { cwd: config.cwd }) | ||
processed.files = await globby(check.path, { cwd: config.cwd }) | ||
} else if (!check.entry) { | ||
if (pkg.packageJson.main) { | ||
check.files = [ | ||
processed.files = [ | ||
require.resolve(join(dirname(pkg.path), pkg.packageJson.main)) | ||
] | ||
} else { | ||
check.files = [join(dirname(pkg.path), 'index.js')] | ||
processed.files = [join(dirname(pkg.path), 'index.js')] | ||
} | ||
} | ||
return check | ||
return processed | ||
}) | ||
@@ -134,0 +135,0 @@ ) |
{ | ||
"name": "size-limit", | ||
"version": "4.9.0", | ||
"version": "4.9.1", | ||
"description": "CLI tool for Size Limit", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"colorette": "^1.2.1", | ||
"cosmiconfig": "^7.0.0", | ||
"globby": "^11.0.1", | ||
"lilconfig": "^2.0.1", | ||
"ora": "^5.1.0", | ||
@@ -29,0 +29,0 @@ "read-pkg-up": "^7.0.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
26210
736
+ Addedlilconfig@^2.0.1
+ Addedlilconfig@2.1.0(transitive)
- Removedcosmiconfig@^7.0.0
- Removed@types/parse-json@4.0.2(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedcosmiconfig@7.1.0(transitive)
- Removedimport-fresh@3.3.0(transitive)
- Removedparent-module@1.0.1(transitive)
- Removedresolve-from@4.0.0(transitive)
- Removedyaml@1.10.2(transitive)