Skip to content

exports.import.development points to a non shipped file #84

Closed

Description

@richardgarnier

On the version downloaded on the repository (latest 5.0.0), cli, generator, react-query and runtime all have an export section that looks like this

"exports": {
    "require": {
      "types": "./dist/index.d.cts",
      "default": "./dist/index.cjs"
    },
    "import": {
      "types": "./dist/index.d.mts",
      "development": "./src/index.ts",
      "default": "./dist/index.mjs"
    }
  },

However the development source is NOT shipped in the archive, so if a tool picks it up for whatever reason, it will obviously be missing and produce an error.
I believe the development section should be omitted ?

Activity

  1. Embraser01 commented on Aug 7, 2026

    @Embraser01
    Owner

    Good catch, I opened #85 that should fix the issue once published

  2. Embraser01 commented on Aug 7, 2026

    @Embraser01
    Owner

    Released in 5.0.1 🎉

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