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

Package.json - TypeScript Export API Not Supported #4249

Open
crutchcorn opened this issue Dec 1, 2024 · 0 comments
Open

Package.json - TypeScript Export API Not Supported #4249

crutchcorn opened this issue Dec 1, 2024 · 0 comments

Comments

@crutchcorn
Copy link

crutchcorn commented Dec 1, 2024

Area with issue?

JSON Schema

✔️ Expected Behavior

TypeScript supported types@>=5.0 export API should be supported when inside of exports

❌ Actual Behavior

It does not parse as a valid property

YAML or JSON file that does not work.

{
  "//": "...",
  "exports": {
    ".": {
      "import": {
        "types@>=5.0": "./ts-5/index.v5.d.ts",
        "types": "./dist/esm/index.d.ts",
        "default": "./dist/esm/index.js"
      },
      "require": {
        "types@>=5.0": "./ts-5/index.v5.d.cts",
        "types": "./dist/cjs/index.d.cts",
        "default": "./dist/cjs/index.cjs"
      }
    },
    "./package.json": "./package.json"
  },
}

IDE or code editor.

Visual Studio Code

Are you making a PR for this?

No, someone else must create the PR.

FWIW I'd be willing to make a PR, but I'm not familiar enough with JSON schema to add a string property in addition to static properties like is needed here

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

1 participant