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
|
Description: export commonjs files
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-04-01
--- a/package.json
+++ b/package.json
@@ -10,7 +10,11 @@
"url": "https://sindresorhus.com"
},
"type": "module",
- "exports": "./index.js",
+ "module": "./index.js",
+ "exports": {
+ "import": "./index.js",
+ "require": "./index.cjs"
+ },
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
@@ -18,7 +22,9 @@
"test": "xo && ava && tsd"
},
"files": [
+ "index.cjs",
"index.js",
+ "pathExists.cjs",
"index.d.ts"
],
"keywords": [
|