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

Add "types" entries to the "exports" property of package.json, to allow consumption from Typescript with the new Node16 module resolution strategy #42

Closed
Duncan3142 opened this issue May 21, 2022 · 1 comment
Labels
question Further information is requested

Comments

@Duncan3142
Copy link

Is your feature request related to a problem? Please describe.

I'm unable to consume "ava" from Typescript 4.7, when module resolution is set to Node16

Describe the solution you'd like

Add "types" entries to the "exports" property of package.json

Describe alternatives you've considered

None

Additional context

The following should suffice

"exports": {
  ".": {
    "types": "./index.d.ts"
    "import": "./entrypoints/main.mjs",
    "require": "./entrypoints/main.cjs"
  },
  "./eslint-plugin-helper": "./entrypoints/eslint-plugin-helper.cjs",
  "./plugin": {
    "import": "./entrypoints/plugin.mjs",
    "require": "./entrypoints/plugin.cjs"
  }
},
@Duncan3142 Duncan3142 added the question Further information is requested label May 21, 2022
@Duncan3142 Duncan3142 changed the title Add "types" entries to the "exports" property of package.json, to allow consumption from Typescript with the new Node16 module resolution strategy Add "types" entries to the "exports" property of package.json, to allow consumption from Typescript with the new Node16 module resolution strategy May 21, 2022
@novemberborn
Copy link
Member

This is an issue in AVA itself, keep an eye on avajs/ava#3024.

Will close since the work is tracked in a different repository.

@novemberborn novemberborn closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants