Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

build: update exports for typescript compatibility #186

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

tylerbutler
Copy link
Contributor

Resolves #185.

Turns out the fix for the issue is straightforward because the build is already generating .d.cts and .d.mts type files - the exports weren't pointing to them correctly. That is now fixed.

Tested by running npx @arethetypeswrong/cli before and after this change.

@pi0 pi0 changed the title Fix exports to point to module-format-specific types files build: update exports for typescript compatibility Jan 28, 2025
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thnx

@pi0 pi0 merged commit 43b680c into unjs:main Jan 28, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nypm is not usable in TypeScript CJS projects using moduleResolution: node16
2 participants