Skip to content

Commit

Permalink
fix: add exports field
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Jul 19, 2023
1 parent 1fb2350 commit f7486cf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
"browser": "dist/browser-ponyfill.js",
"react-native": "dist/react-native-ponyfill.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"browser": "./dist/browser-ponyfill.js",
"react-native": "./dist/react-native-ponyfill.js",
"default": "./dist/node-ponyfill.js"
},
"./polyfill": {
"types": "./index.d.ts",
"browser": "./dist/browser-polyfill.js",
"react-native": "./dist/react-native-polyfill.js",
"default": "./dist/node-polyfill.js"
},
"./package.json": "./package.json"
},
"scripts": {
"commit": "cz",
"prepare": "husky install",
Expand Down

0 comments on commit f7486cf

Please sign in to comment.