File: export-commonjs.patch

package info (click to toggle)
node-jest 29.6.2~ds1%2B~cs73.45.28-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,104 kB
  • sloc: javascript: 21,649; makefile: 47; sh: 21
file content (24 lines) | stat: -rw-r--r-- 698 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
Description: export commonjs files
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2023-08-12

--- a/jest-snapshot-serializer-raw/package.json
+++ b/jest-snapshot-serializer-raw/package.json
@@ -8,8 +8,14 @@
     "jest-snapshot-serializer"
   ],
   "exports": {
-    ".": "./lib/index.js",
-    "./always": "./lib/always.js"
+    ".": {
+      "import": "./lib/index.js",
+      "require": "./lib/index.cjs"
+    },
+    "./always": {
+      "import": "./lib/always.js",
+      "require": "./lib/always.cjs"
+    }
   },
   "repository": "https://github.com/ikatyang/jest-snapshot-serializer-raw",
   "homepage": "https://github.com/ikatyang/jest-snapshot-serializer-raw#readme",