Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch [email protected] for the project I'm working on.
Because of some changes with TypeScript (moduleResolution = bundler), the types are not working with newer versions of TypeScript. The following change needs to be made to make sure the types are exported in a way which works with bundler.
More details can be found here: microsoft/TypeScript#52363
It's only a small change to fix it. Here is the diff that solved the problem:
diff --git a/node_modules/lemonsqueezy.ts/package.json b/node_modules/lemonsqueezy.ts/package.json
index e5a0751..bc84638 100644
--- a/node_modules/lemonsqueezy.ts/package.json
+++ b/node_modules/lemonsqueezy.ts/package.json
@@ -32,7 +32,10 @@
},
"exports": {
".": {
- "import": "./dist/index.mjs",
+ "import": {
+ "types": "./dist/index.d.ts",
+ "default": "./dist/index.mjs"
+ },
"require": "./dist/index.js"
},
"./checkout": {
This issue body was partially generated by patch-package.