File: 0005-Commonjs-for-flat.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 (43 lines) | stat: -rw-r--r-- 1,419 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 node-mocha (10.4.0+ds1+~cs33.1.8-1) UNRELEASED; urgency=medium
 .
   * Team upload
Author: Yadd <yadd@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-04-07

--- a/flat/package.json
+++ b/flat/package.json
@@ -8,11 +8,13 @@
   "exports": {
     ".": {
       "types": "./index.d.ts",
-      "default": "./index.js"
+      "import": "./index.js",
+      "require": "./index.cjs"
     }
   },
   "files": [
     "cli.js",
+    "index.cjs",
     "index.js",
     "index.d.ts"
   ],