File: export-commonjs-files.patch

package info (click to toggle)
node-tap 16.3.7%2Bds3%2B~cs49.5.20-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 99,068 kB
  • sloc: javascript: 14,032; sh: 102; makefile: 37
file content (37 lines) | stat: -rw-r--r-- 873 bytes parent folder | download | duplicates (3)
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
30
31
32
33
34
35
36
37
Description: export commonjs files
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-11-24

--- a/module-caller-callsite/package.json
+++ b/module-caller-callsite/package.json
@@ -11,7 +11,12 @@
 		"url": "https://sindresorhus.com"
 	},
 	"type": "module",
-	"exports": "./index.js",
+	"main": "./index.cjs",
+	"module": "./index.js",
+	"exports": {
+		"import": "./index.js",
+		"require": "./index.cjs"
+	},
 	"engines": {
 		"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
 	},
--- a/module-caller-path/package.json
+++ b/module-caller-path/package.json
@@ -11,7 +11,12 @@
 		"url": "https://sindresorhus.com"
 	},
 	"type": "module",
-	"exports": "./index.js",
+	"main": "./index.cjs",
+	"module": "./index.js",
+	"exports": {
+		"import": "./index.js",
+		"require": "./index.cjs"
+	},
 	"engines": {
 		"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
 	},