Skip to content

Commit

Permalink
fix: include "main" and "types" fields to support legacy applicat…
Browse files Browse the repository at this point in the history
…ions (#32)

* fix: include `"main"` and `"types"` fields to support legacy applications

Without these fields, applications which use certain legacy TypeScript
settings (such as `"moduleResolution": "node"`) were not able to detect
the type definitions for `@optum/react-core`.

* Update package.json version

---------

Co-authored-by: Niels Peschel <[email protected]>
  • Loading branch information
nthurow and NielsJPeschel authored Apr 3, 2024
1 parent 76a7c8a commit 912b6f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@optum/react-hooks",
"version": "1.0.2-next.1",
"version": "1.0.2-next.2",
"description": "A reusable set of React hooks",
"repository": "https://github.com/Optum/react-hooks",
"license": "Apache 2.0",
Expand All @@ -12,6 +12,8 @@
"files": [
"build/**"
],
"main": "./build/cjs/index.js",
"types": "./build/types/cjs/index.d.ts",
"devDependencies": {
"@babel/preset-env": "^7.12.11",
"@babel/preset-typescript": "^7.12.10",
Expand Down

0 comments on commit 912b6f5

Please sign in to comment.