Skip to content

"types" property required in package.json #21

@andreincu

Description

@andreincu

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions