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

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`.
  • Loading branch information
nthurow committed Apr 3, 2024
1 parent 76a7c8a commit 14b4179
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 14b4179

Please sign in to comment.