Skip to content

Commit

Permalink
Moved "types": "./dist/index.d.ts" into package.json (#4)
Browse files Browse the repository at this point in the history
* Moved "types": "./dist/index.d.ts" into package.json

This solves the error `The 'react-hydration-provider' library may need to update its package.json or typings.`, as explained [here](https://stackoverflow.com/a/76212193).

* Re-added types in package.json

In addition to the key into `exports`, now there's a `"types": "./dist/index.d.ts"` out of it again
  • Loading branch information
Semanual authored Aug 25, 2023
1 parent 9967cd2 commit f557df3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./entry/index.js",
"require": "./entry/index.cjs"
}
},
"types": "dist/index.d.ts",
"types": "./dist/index.d.ts",
"main": "./entry/index.cjs",
"files": [
"/entry/",
Expand Down

0 comments on commit f557df3

Please sign in to comment.