Skip to content

Commit b7076bb

Browse files
authored
Export package.json (node-fetch#908)
* Export package.json * Correct exports structure to support multiple modules
1 parent ca50c22 commit b7076bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
"sideEffects": false,
88
"type": "module",
99
"exports": {
10-
"import": "./src/index.js",
11-
"require": "./dist/index.cjs"
10+
".": {
11+
"import": "./src/index.js",
12+
"require": "./dist/index.cjs"
13+
},
14+
"./package.json": "./package.json"
1215
},
1316
"files": [
1417
"src",

0 commit comments

Comments
 (0)