Skip to content

Commit 14b4179

Browse files
committed
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`.
1 parent 76a7c8a commit 14b4179

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"files": [
1313
"build/**"
1414
],
15+
"main": "./build/cjs/index.js",
16+
"types": "./build/types/cjs/index.d.ts",
1517
"devDependencies": {
1618
"@babel/preset-env": "^7.12.11",
1719
"@babel/preset-typescript": "^7.12.10",

0 commit comments

Comments
 (0)