Skip to content

Commit

Permalink
Add exports field to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
arturmuller committed Jul 27, 2024
1 parent 951a0ed commit 92c181e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,20 @@
"repository": "git://github.com/ianstormtaylor/superstruct.git",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"sideEffects": false,
"files": [
"dist"
Expand Down

0 comments on commit 92c181e

Please sign in to comment.