mirror of
https://github.com/jlengrand/adyen-web.git
synced 2026-03-10 08:01:22 +00:00
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:
5
.changeset/brown-eels-hear.md
Normal file
5
.changeset/brown-eels-hear.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@adyen/adyen-web': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore: fix ts config
|
||||||
@@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user