Skip to content

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

Merged
mattphillips merged 1 commit intomattphillips:mainfrom
Nitive:patch-1
Nov 12, 2022
Merged

Fix typings resolution when using TypeScript 4.7+ with ESM#83
mattphillips merged 1 commit intomattphillips:mainfrom
Nitive:patch-1

Conversation

@Nitive
Copy link
Copy Markdown
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
Copy Markdown
Owner

Thanks @Nitive

@Nitive Nitive deleted the patch-1 branch November 12, 2022 10:25
@mattphillips
Copy link
Copy Markdown
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.

2 participants