Typescript: Exporting 'types' within 'exports' field (#2313)

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 <jan.hellar@firma.seznam.cz>
This commit is contained in:
janhellar
2023-10-20 11:23:40 +02:00
committed by GitHub
parent 010c553738
commit c6c19ac646
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
'@adyen/adyen-web': patch
---
chore: fix ts config

View File

@@ -16,6 +16,7 @@
"typings": "dist/types", "typings": "dist/types",
"exports": { "exports": {
".": { ".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/es/index.js", "import": "./dist/es/index.js",
"require": "./dist/cjs/index.js" "require": "./dist/cjs/index.js"
}, },