fix(deps): scope glob resolution to avoid breaking jest coverage

The global glob@^10.5.0 resolution forced glob v10 for all consumers,
including test-exclude (used by babel-plugin-istanbul), which expects the
glob v7 function API. CI runs tests with --coverage, causing:

  TypeError: The "original" argument must be of type function

Scope the resolution to archiver-utils only so Jest coverage works.

Co-authored-by: Greg Nazario <greg@gnazar.io>
This commit is contained in:
Cursor Agent 2026-06-17 14:39:28 +00:00
parent 1ae1226a47
commit e872393561
No known key found for this signature in database
2 changed files with 66 additions and 7 deletions

View File

@ -38,7 +38,7 @@
"diff": "^4.0.4",
"flatted": "^3.3.3",
"form-data": "^4.0.6",
"glob": "^10.5.0",
"archiver-utils@npm:>glob": "10.5.0",
"handlebars": "^4.7.9",
"js-yaml": "^4.2.0",
"js-yaml@npm:^3.13.1": "3.14.2",

View File

@ -3389,6 +3389,13 @@ __metadata:
languageName: node
linkType: hard
"fs.realpath@npm:^1.0.0":
version: 1.0.0
resolution: "fs.realpath@npm:1.0.0"
checksum: 99ddea01a7e75aa276c250a04eedeffe5662bce66c65c07164ad6264f9de18fb21be9433ead460e54cff20e31721c811f4fb5d70591799df5f85dce6d6746fd0
languageName: node
linkType: hard
"fsevents@npm:^2.3.2":
version: 2.3.3
resolution: "fsevents@npm:2.3.3"
@ -3499,7 +3506,7 @@ __metadata:
languageName: node
linkType: hard
"glob@npm:^10.5.0":
"glob@npm:^10.0.0":
version: 10.5.0
resolution: "glob@npm:10.5.0"
dependencies:
@ -3515,6 +3522,31 @@ __metadata:
languageName: node
linkType: hard
"glob@npm:^13.0.0":
version: 13.0.6
resolution: "glob@npm:13.0.6"
dependencies:
minimatch: ^10.2.2
minipass: ^7.1.3
path-scurry: ^2.0.2
checksum: 1eb421c696c66af3c26e4845dbdd222d3b982ede17448456b49272722d872e9a91741b50e4e827370c57d17a39a69790061f45033523f085c076d8fcc0f69d2b
languageName: node
linkType: hard
"glob@npm:^7.1.3, glob@npm:^7.1.4":
version: 7.2.3
resolution: "glob@npm:7.2.3"
dependencies:
fs.realpath: ^1.0.0
inflight: ^1.0.4
inherits: 2
minimatch: ^3.1.1
once: ^1.3.0
path-is-absolute: ^1.0.0
checksum: 29452e97b38fa704dabb1d1045350fb2467cf0277e155aa9ff7077e90ad81d1ea9d53d3ee63bd37c05b09a065e90f16aec4a65f5b8de401d1dac40bc5605d133
languageName: node
linkType: hard
"globals@npm:^13.19.0":
version: 13.24.0
resolution: "globals@npm:13.24.0"
@ -3727,7 +3759,17 @@ __metadata:
languageName: node
linkType: hard
"inherits@npm:^2.0.1, inherits@npm:^2.0.3, inherits@npm:~2.0.3":
"inflight@npm:^1.0.4":
version: 1.0.6
resolution: "inflight@npm:1.0.6"
dependencies:
once: ^1.3.0
wrappy: 1
checksum: f4f76aa072ce19fae87ce1ef7d221e709afb59d445e05d47fba710e85470923a75de35bfae47da6de1b18afc3ce83d70facf44cfb0aff89f0a3f45c0a0244dfd
languageName: node
linkType: hard
"inherits@npm:2, inherits@npm:^2.0.1, inherits@npm:^2.0.3, inherits@npm:~2.0.3":
version: 2.0.4
resolution: "inherits@npm:2.0.4"
checksum: 4a48a733847879d6cf6691860a6b1e3f0f4754176e4d71494c41f3475553768b10f84b5ce1d40fbd0e34e6bfbb864ee35858ad4dd2cf31e02fc4a154b724d7f1
@ -4540,7 +4582,7 @@ __metadata:
languageName: node
linkType: hard
"lru-cache@npm:^11.1.0, lru-cache@npm:^11.2.1":
"lru-cache@npm:^11.0.0, lru-cache@npm:^11.1.0, lru-cache@npm:^11.2.1":
version: 11.5.1
resolution: "lru-cache@npm:11.5.1"
checksum: d92b10275051c5139ee8087bd71b18718f0bd1a964f80b9ddc65dc31eecee0bcedc59b29e7f876fcc3ffce7a9823d7789977ebc4ab247a382a6e55f8895c85a2
@ -4664,7 +4706,7 @@ __metadata:
languageName: node
linkType: hard
"minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.2":
"minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2":
version: 3.1.5
resolution: "minimatch@npm:3.1.5"
dependencies:
@ -4758,7 +4800,7 @@ __metadata:
languageName: node
linkType: hard
"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0, minipass@npm:^7.0.2, minipass@npm:^7.0.3, minipass@npm:^7.0.4, minipass@npm:^7.1.2":
"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0, minipass@npm:^7.0.2, minipass@npm:^7.0.3, minipass@npm:^7.0.4, minipass@npm:^7.1.2, minipass@npm:^7.1.3":
version: 7.1.3
resolution: "minipass@npm:7.1.3"
checksum: 2ede17c0bf8fec499be3360fd07f0ec7666189e3907320a9b653f1530cf84af98928c5b12d80bfb75f321833bf2e97785b940540213ebdafe97a5f10327e664d
@ -4888,7 +4930,7 @@ __metadata:
languageName: node
linkType: hard
"once@npm:^1.3.1, once@npm:^1.4.0":
"once@npm:^1.3.0, once@npm:^1.3.1, once@npm:^1.4.0":
version: 1.4.0
resolution: "once@npm:1.4.0"
dependencies:
@ -5019,6 +5061,13 @@ __metadata:
languageName: node
linkType: hard
"path-is-absolute@npm:^1.0.0":
version: 1.0.1
resolution: "path-is-absolute@npm:1.0.1"
checksum: 060840f92cf8effa293bcc1bea81281bd7d363731d214cbe5c227df207c34cd727430f70c6037b5159c8a870b9157cba65e775446b0ab06fd5ecc7e54615a3b8
languageName: node
linkType: hard
"path-key@npm:^3.0.0, path-key@npm:^3.1.0":
version: 3.1.1
resolution: "path-key@npm:3.1.1"
@ -5043,6 +5092,16 @@ __metadata:
languageName: node
linkType: hard
"path-scurry@npm:^2.0.2":
version: 2.0.2
resolution: "path-scurry@npm:2.0.2"
dependencies:
lru-cache: ^11.0.0
minipass: ^7.1.2
checksum: a723afe86e342e19dd1b49ce4f5b64a9a84b1e2e07ffc62f051c11623ecd461b1bf1599eee1ecacfce03dda8b6bb866a5df80c0ded45375d258ff22f631920a7
languageName: node
linkType: hard
"path-type@npm:^4.0.0":
version: 4.0.0
resolution: "path-type@npm:4.0.0"