Skip to content

Commit

Permalink
fix: Use exports
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Nov 3, 2022
1 parent 9d2df76 commit 4383fe4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@
"author": "Ryo Igarashi <n33t5hin@gmail.com>",
"license": "AGPL-3.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./fetch": {
"types": "./dist/index.d.ts",
"require": "./dist/fetch.js",
"import": "./dist/fetch.mjs"
}
},
"scripts": {
"test": "npm-run-all test:*",
"test:jest": "jest --coverage --config=jest.config.js",
Expand Down

0 comments on commit 4383fe4

Please sign in to comment.