Skip to content

Types for typescript are not correctly referenced #143

Description

@remyguillaume

Hi there,

I've just migrated to uHtml 4.7.0, and it seems that the package.json has a wrong exports for types definition (for usage with typescript).

"exports": {
    ".": {
      "import": "./esm/index.js",
      "types": {
        "require": "./types/index.d.cts",
        "default": "./types/index.d.mts"
      },
      "default": "./cjs/index.js"
    },
...
...

Actually there is no mts of cts file. I think this should be repalced with

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

Is it ok for you if I open a PR for this?
Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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