Skip to content

"types" property required in package.json #21

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

Open
andreincu opened this issue Mar 8, 2025 · 1 comment
Open

"types" property required in package.json #21

andreincu opened this issue Mar 8, 2025 · 1 comment

Comments

@andreincu
Copy link

It seems that it's not sufficient to add the following part to support types, yet:

"exports": {
    "types": "./dist/index.d.ts",
    "default": "./dist/index.js"
  },

I believe that you have to modify as follows in the package.json:

"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@vladshcherbin
Copy link
Owner

@andreincu can you please tell me more on why it's sufficient, doesn't it show types for you or something else?

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

No branches or pull requests

2 participants