Skip to content

Conversation

@akwodkiewicz
Copy link
Contributor

@akwodkiewicz akwodkiewicz commented Feb 5, 2024

This fixes TypeScript support for NodeNext/Node16/Bundler moduleResolution.

The issue was that the ./dist/lib.js has a higher precedence than ./dist/lib/index.d.ts when TypeScript tries to resolve "./lib" imports/exports.

Instead of renaming the whole lib/ folder I decided to add a infix to the lib.js artifact. But to solve the issue you could've renamed the directory instead.

Resolves #386

This fixes TypeScript support for NodeNext/Node16/Bundler
moduleResolution.

The issue was that the ./dist/lib.js had a higher precedence than
./dist/lib/index.d.ts when TypeScript tried to resolve "./lib"
imports/exports.

Instead of renaming the whole lib/ folder I decided to add a infix to
the lib.js artifact. But to solve the issue you could've renamed the
directory instead.
Copy link
Contributor

@hoffmannjan hoffmannjan left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@hoffmannjan hoffmannjan changed the base branch from dev to release-2.15.4 February 12, 2024 17:06
@hoffmannjan
Copy link
Contributor

Will be included in 2.15.4.

@hoffmannjan hoffmannjan merged commit d8bc3b9 into casper-ecosystem:release-2.15.4 Feb 12, 2024
ryo-casper added a commit that referenced this pull request Apr 10, 2024
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.

Library cannot be used with modern moduleResolution TypeScript settings

2 participants