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

Fix typings resolution when using TypeScript 4.7+ with ESM #83

Merged
merged 1 commit into from Nov 12, 2022

Conversation

Nitive
Copy link
Contributor

@Nitive Nitive commented Jun 7, 2022

TypeScript in ESM mode is trying to use file index.d.mts for types but there is no such file. So we need to provide custom path to typings file. Root types field is ignored in ESM mode

For reference: same issue in another package telegraf/telegraf#1629 (comment)

TypeScript in ESM mode is trying to use file index.d.mts for types but there is no such file. So we need to provide custom path to typings file. Root `types` field is ignored in ESM mode
@mattphillips mattphillips merged commit e12da18 into mattphillips:main Nov 12, 2022
@mattphillips
Copy link
Owner

Thanks @Nitive

@Nitive Nitive deleted the patch-1 branch November 12, 2022 10:25
@mattphillips
Copy link
Owner

Released in https://www.npmjs.com/package/deep-object-diff/v/1.1.8

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.

None yet

2 participants