File: export-commonjs-files.patch

package info (click to toggle)
node-cli-cursor 4.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 156 kB
  • sloc: javascript: 158; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 513 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
26
27
Description: export index.cjs
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-08-29

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