1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Mon, 21 Apr 2025 00:44:27 +0200
Subject: Reexport default
Allow smooth upgrade
Forwarded: not-needed
---
src/index.ts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/index.ts b/src/index.ts
index f04a240..983b699 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -224,3 +224,11 @@ export const glob = Object.assign(glob_, {
unescape,
})
glob.glob = glob
+
+export default glob
+
+// CJS compatibility
+if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
+ module.exports = glob;
+}
+
|