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",
|