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

fix: rename lib.js to lib.web.js #387

Merged
merged 1 commit into from
Feb 12, 2024

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
5 checks passed
ryo-casper added a commit that referenced this pull request Apr 10, 2024
# 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.

Library cannot be used with modern moduleResolution TypeScript settings
2 participants