File: export-commonjs.patch

package info (click to toggle)
node-mime 4.1.0%2Bdfsg%2B~cs8.97.10-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,268 kB
  • sloc: javascript: 956; sh: 23; makefile: 16
file content (21 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: export commonjs
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2025-10-21

--- a/package.json
+++ b/package.json
@@ -8,9 +8,11 @@
   "engines": {
     "node": ">=16"
   },
-  "main": "./dist/src/index.js",
   "exports": {
-    ".": "./dist/src/index.js",
+    ".": {
+      "import": "./dist/src/index.js",
+      "require": "./dist/src/index.cjs"
+    },
     "./lite": "./dist/src/index_lite.js",
     "./types/standard.js": "./dist/types/standard.js",
     "./types/other.js": "./dist/types/other.js",