Skip to content

Commit

Permalink
add types key to exports map
Browse files Browse the repository at this point in the history
Required to support `"moduleResolution": "NodeNext"`. See:
microsoft/TypeScript#51996
  • Loading branch information
tmillican committed Jan 9, 2023
1 parent 0a3a006 commit d6c038a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion iti-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"sideEffects": false,
"source": "src/index.ts",
"exports": {
"default": "./dist/iti-react.modern.js"
"default": "./dist/iti-react.modern.js",
"types": "./dist/src/index.d.ts"
},
"main": "./dist/iti-react.modern.js",
"module": "./dist/iti-react.module.js",
Expand Down
3 changes: 2 additions & 1 deletion iti/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"source": "src/index.ts",
"exports": {
"require": "./dist/iti.cjs",
"default": "./dist/iti.modern.js"
"default": "./dist/iti.modern.js",
"types": "./dist/src/index.d.ts"
},
"main": "./dist/iti.cjs",
"module": "./dist/iti.module.js",
Expand Down

0 comments on commit d6c038a

Please sign in to comment.