Skip to content

Commit

Permalink
chore: add types field to exports (#3836)
Browse files Browse the repository at this point in the history
* chore(react-core): add types field in exports

* Create thirty-pans-confess.md

* chore(ui-vue): add types field to exports

* Update thirty-pans-confess.md
  • Loading branch information
zchenwei committed May 9, 2023
1 parent 83af511 commit 82f3968
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changeset/thirty-pans-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@aws-amplify/ui-react-core": patch
"@aws-amplify/ui-react": patch
"@aws-amplify/ui-vue": patch
---

chore: add `types` field to `exports` in `package.json` for `@aws-amplify/ui-react-core` and `@aws-amplify/ui-vue`
3 changes: 2 additions & 1 deletion packages/react-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"exports": {
".": {
"import": "./dist/esm/index.mjs",
"require": "./dist/index.js"
"require": "./dist/index.js",
"types": "./dist/types/index.d.ts"
},
"./package.json": "./package.json"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"main": "dist/index.cjs",
"module": "dist/index.js",
"exports": {
".": "./dist/index.js",
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/src/index.d.ts"
},
"./styles.css": "./dist/style.css"
},
"browser": {
Expand Down

0 comments on commit 82f3968

Please sign in to comment.