File: 0004-Commonjs-for-log-symbols.patch

package info (click to toggle)
node-mocha 11.7.2%2Bds1%2B~cs36.3.14-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 9,212 kB
  • sloc: javascript: 36,394; makefile: 8; sh: 2
file content (25 lines) | stat: -rw-r--r-- 527 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: declare commonjs files
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2024-04-07

--- a/log-symbols/package.json
+++ b/log-symbols/package.json
@@ -13,7 +13,8 @@
 	"type": "module",
 	"exports": {
 		"types": "./index.d.ts",
-		"node": "./index.js",
+		"import": "./index.js",
+		"require": "./index.cjs",
 		"default": "./browser.js"
 	},
 	"sideEffects": false,
@@ -24,6 +25,7 @@
 		"test": "xo && ava && tsd"
 	},
 	"files": [
+		"index.cjs",
 		"index.js",
 		"index.d.ts",
 		"browser.js",