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
|
Description: export commonjs files
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-02-21
--- a/package.json
+++ b/package.json
@@ -10,9 +10,11 @@
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
- "type": "module",
+ "main": "./index.cjs",
+ "module": "./index.js",
"exports": {
- "node": "./index.js",
+ "import": "./index.js",
+ "require": "./index.cjs",
"default": "./browser.js"
},
"engines": {
@@ -22,6 +24,7 @@
"test": "xo && ava && tsd"
},
"files": [
+ "index.cjs",
"index.js",
"index.d.ts",
"browser.js"
|