Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add types to package.json #329

Closed
malins opened this issue Mar 31, 2023 · 1 comment
Closed

Add types to package.json #329

malins opened this issue Mar 31, 2023 · 1 comment
Labels

Comments

@malins
Copy link

malins commented Mar 31, 2023

Hello,

I'm having problems using your library in my jest test running in a ESM project. Could you please add the following to package.json, so that typescript correctly finds your types?

         ".": {
             "import": "./dist/esm/index.js",
             "require": "./dist/cjs/index.js",
-            "default": "./dist/cjs/index.js"
+            "default": "./dist/cjs/index.js",
+            "types": "./dist/esm/index.d.ts"
         }
     },

@jwalton jwalton closed this as completed in 7d3755a Apr 3, 2023
github-actions bot pushed a commit that referenced this issue Apr 3, 2023
## [4.1.12](v4.1.11...v4.1.12) (2023-04-03)

### Bug Fixes

* **types:** Export types for ESM. ([7d3755a](7d3755a)), closes [#329](#329)
@jwalton
Copy link
Owner

jwalton commented Apr 3, 2023

🎉 This issue has been resolved in version 4.1.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants