Skip to content

Commit bdff69e

Browse files
committed
Patch brace-expansion for legacy minimatch compatibility
- Override all minimatch versions to brace-expansion 5.0.8 - Restore the callable CommonJS export expected by older minimatch releases
1 parent 79f43e3 commit bdff69e

3 files changed

Lines changed: 27 additions & 35 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
diff --git a/dist/commonjs/index.js b/dist/commonjs/index.js
2+
index be9df86be09c7655787a65c55ae6da01858894c3..3b1d5c304a2c907c6890343372ae1edd6352f4b7 100644
3+
--- a/dist/commonjs/index.js
4+
+++ b/dist/commonjs/index.js
5+
@@ -260,4 +260,6 @@ function expand_(str, max, maxLength, isTop) {
6+
}
7+
return acc;
8+
}
9+
+// Preserve the callable CommonJS API expected by minimatch versions before v10.
10+
+module.exports = Object.assign(expand, module.exports);
11+
//# sourceMappingURL=index.js.map

pnpm-lock.yaml

Lines changed: 12 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ onlyBuiltDependencies:
3838
- sharp
3939

4040
overrides:
41-
"@hono/node-server": 2.0.11
4241
"@effect/atom-react": "catalog:"
4342
"@effect/platform-bun": "catalog:"
4443
"@effect/platform-node": "catalog:"
4544
"@effect/platform-node-shared": "catalog:"
4645
"@effect/sql-sqlite-bun": "catalog:"
4746
"@effect/vitest": "catalog:"
47+
"@hono/node-server": 2.0.11
4848
"@types/node": "catalog:"
49+
brace-expansion: 5.0.8
4950
effect: "catalog:"
5051
fast-uri: 3.1.4
5152
postcss: 8.5.18
@@ -62,6 +63,7 @@ packageExtensions:
6263

6364
patchedDependencies:
6465
"@effect/platform-node-shared@4.0.0-beta.97": patches/@effect__platform-node-shared@4.0.0-beta.97.patch
66+
brace-expansion@5.0.8: patches/brace-expansion@5.0.8.patch
6567
effect@4.0.0-beta.97: patches/effect@4.0.0-beta.97.patch
6668
lexical@0.47.0: patches/lexical@0.47.0.patch
6769

@@ -70,6 +72,6 @@ peerDependencyRules:
7072
- vite
7173
- vitest
7274
allowedVersions:
75+
"@voidzero-dev/vite-plus-core>typescript": "7"
7376
vite: "*"
7477
vitest: "*"
75-
"@voidzero-dev/vite-plus-core>typescript": "7"

0 commit comments

Comments
 (0)