-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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 running bin script for es modules with node resolution #44345
Conversation
This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise. |
Technically a breaking change if we have people who relied on |
Fixed breaking changes. Now it works correctly for
Also add old tsserver for IDEs who use |
I fixed it, but then I realized what it wasn't breaking changes. When you install typescript package, package manager will create symlink like this |
|
Could somebody review this pr? @rbuckton @RyanCavanaugh @weswigham. |
You've found a bug in node's |
Might be, but it happening because of file without extensions. You can solve it just by adding extension without any braking changes at all. |
nodejs/node#35518 |
@weswigham is it worth taking this fix or should we wait for a fix from node? I'm not clear on whether that will address the original bug. |
So, what about this? Nodejs major release doesn't fix problem and it maybe won't fix in next release too. |
Yeah, we're not changing anything for this. Anything nonfunctional is a bug in an experimental feature in node, which we'll not bend over backwards to support ♥ - our bin file is a cjs file in a cjs package; any configuration of node that breaks that is a problem in node itself, of that I'm confident. |
Fixes Issue #44342