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

package info (click to toggle)
node-mocha 11.7.2%2Bds1%2B~cs36.3.14-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,240 kB
  • sloc: javascript: 36,385; makefile: 8; sh: 2
file content (32 lines) | stat: -rw-r--r-- 741 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
28
29
30
31
32
From: Yadd <yadd@debian.org>
Date: Wed, 3 Dec 2025 17:07:31 +0100
Subject: declare commonjs files

Forwarded: not-needed
Last-Update: 2024-04-07
---
 log-symbols/package.json | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/log-symbols/package.json b/log-symbols/package.json
index 8187d71..33016ae 100644
--- 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",