File: export-commonjs-files.patch

package info (click to toggle)
node-globby 13.1.3%2B~cs16.25.40-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,608 kB
  • sloc: javascript: 3,628; makefile: 3
file content (29 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (2)
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
28
29
Description: export commonjs files
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-03-27

--- a/package.json
+++ b/package.json
@@ -11,7 +11,11 @@
 		"url": "https://sindresorhus.com"
 	},
 	"type": "module",
-	"exports": "./index.js",
+	"module": "./index.js",
+	"exports": {
+		"import": "./index.js",
+		"require": "./index.cjs"
+	},
 	"engines": {
 		"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
 	},
@@ -20,6 +24,8 @@
 		"test": "xo && ava && tsd"
 	},
 	"files": [
+		"globby.cjs",
+		"index.cjs",
 		"index.js",
 		"index.d.ts",
 		"ignore.js",