Skip to content

Commit

Permalink
Add explicit exports for types in package exports for ESM import (#674)
Browse files Browse the repository at this point in the history
Signed-off-by: Perttu Kärnä <[email protected]>
  • Loading branch information
Perttu Kärnä authored Jan 8, 2024
1 parent f540c71 commit 517779b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Deprecated
### Removed
### Fixed
- Add new types to `package.json` exports configuration for ESM support ([#674](https://github.com/opensearch-project/opensearch-js/pull/674))
### Security

## [2.5.0]
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"types": "./index.d.ts",
"import": "./index.mjs"
},
"./api/new": {
"types": "./api/new.d.ts"
},
"./api/types": {
"types": "./api/types.d.ts"
},
"./aws": "./lib/aws/index.js",
"./*": "./*"
},
Expand Down

0 comments on commit 517779b

Please sign in to comment.