Skip to content

Commit

Permalink
Add exports field in package.json (#5559)
Browse files Browse the repository at this point in the history
* Add exports field in package.json

* Create .changeset/early-pans-obey.md

* Format

---------

Co-authored-by: Rall3n <nb.rallen@gmail.com>
Co-authored-by: Nathan Bierema <nbierema@gmail.com>
  • Loading branch information
3 people authored Mar 2, 2023
1 parent c350a12 commit 597143e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-pans-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-select': patch
---

Add `exports` field in package.json
32 changes: 32 additions & 0 deletions packages/react-select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,37 @@
"creatable/index.ts",
"async-creatable/index.ts"
]
},
"exports": {
".": {
"require": "./dist/react-select.cjs.js",
"import": "./dist/react-select.esm.js",
"types": "./dist/react-select.cjs.d.ts"
},
"./base": {
"require": "./base/dist/react-select-base.cjs.js",
"import": "./base/dist/react-select-base.esm.js",
"types": "./base/dist/react-select-base.cjs.d.ts"
},
"./animated": {
"require": "./animated/dist/react-select-animated.cjs.js",
"import": "./animated/dist/react-select-animated.esm.js",
"types": "./animated/dist/react-select-animated.cjs.d.ts"
},
"./async": {
"require": "./async/dist/react-select-async.cjs.js",
"import": "./async/dist/react-select-async.esm.js",
"types": "./async/dist/react-select-async.cjs.d.ts"
},
"./creatable": {
"require": "./creatable/dist/react-select-creatable.cjs.js",
"import": "./creatable/dist/react-select-creatable.esm.js",
"types": "./creatable/dist/react-select-creatable.cjs.d.ts"
},
"./async-creatable": {
"require": "./async-creatable/dist/react-select-async-creatable.cjs.js",
"import": "./async-creatable/dist/react-select-async-creatable.esm.js",
"types": "./async-creatable/dist/react-select-async-creatable.cjs.d.ts"
}
}
}

0 comments on commit 597143e

Please sign in to comment.