Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Add export types to fix typescript moduleResolution:"node16" compatability #2389

Merged
merged 2 commits into from
Aug 24, 2022

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Aug 23, 2022

Description

Fixes #2386.

Add types fields in exports maps.
This adds typescript support when consumers are using moduleResolution:"node16" in their tsconfig file.

The types and typesVersions field are still needed for consumers that still use moduleResolution:"node".

Along the way:

  • Update jest-extended to the latest version
  • Update the consistent-package-json test to assert the presence of a types field in the exports field, and ensure the values match what is defined in the types and typesVersions keys.

@BPScott BPScott requested a review from a team as a code owner August 23, 2022 22:22
@BPScott BPScott requested a review from sander-m August 23, 2022 22:22
This adds typescript support when consumers are using
`moduleResolution:"node16"` in their tsconfig file.

The `types` and `typesVersions` field are still needed for consumers
that still use `moduleResolution:"node"`
@BPScott BPScott changed the title Export types Add export types to fix typescript moduleResolution:"node16" compatability Aug 23, 2022
@BPScott BPScott merged commit 03c1abc into main Aug 24, 2022
@BPScott BPScott deleted the export-types branch August 24, 2022 16:40
@github-actions github-actions bot mentioned this pull request Aug 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing compatibility for Typescript moduleResolution: node16
2 participants