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 reference to package exports #34

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

Adrastopoulos
Copy link
Contributor

@Adrastopoulos Adrastopoulos commented Jul 11, 2023

Typescript's "bundler" module resolution allows TS to find the type declaration file in package.json. The "types" directive has been replaced by the "exports" directive in package.json.

Relevant issue: microsoft/TypeScript#52363

This PR just adds a "types" module path to the "exports" field on the package.json. If we ever plan to export two files (.mjs and .cjs), then we will have to create a set of type definitions for each.

@Nicolapps Nicolapps merged commit 8f668da into Nicolapps:main Jul 13, 2023
@Nicolapps
Copy link
Owner

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants