File: keep-old-behavior.patch

package info (click to toggle)
node-minimatch 9.0.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 948 kB
  • sloc: javascript: 1,179; sh: 10; makefile: 8
file content (25 lines) | stat: -rw-r--r-- 624 bytes parent folder | download
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
Description: keep a default export at least in commonjs using custom index.js
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2023-09-22

--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
     "type": "git",
     "url": "git://github.com/isaacs/minimatch.git"
   },
-  "main": "./dist/cjs/index.js",
+  "main": "./index.js",
   "module": "./dist/mjs/index.js",
   "types": "./dist/cjs/index.d.ts",
   "exports": {
@@ -18,7 +18,7 @@
       },
       "require": {
         "types": "./dist/cjs/index.d.ts",
-        "default": "./dist/cjs/index.js"
+        "default": "./index.js"
       }
     }
   },