Skip to content

Commit

Permalink
Typescript: Exporting 'types' within 'exports' field (#2313)
Browse files Browse the repository at this point in the history
The `types` field in `package.json` is no longer used if there is
an `exports` field. Because of that `tsc` complains that it can
not find a declaration file for the module.

Co-authored-by: Jan Hellar <[email protected]>
  • Loading branch information
janhellar and Jan Hellar authored Oct 20, 2023
1 parent 010c553 commit c6c19ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-eels-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@adyen/adyen-web': patch
---

chore: fix ts config
1 change: 1 addition & 0 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"typings": "dist/types",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/cjs/index.js"
},
Expand Down

0 comments on commit c6c19ac

Please sign in to comment.