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

Replace ts-node with tsx or add support to tsx #3676

Open
3 tasks done
rtritto opened this issue Aug 29, 2024 · 1 comment
Open
3 tasks done

Replace ts-node with tsx or add support to tsx #3676

rtritto opened this issue Aug 29, 2024 · 1 comment

Comments

@rtritto
Copy link

rtritto commented Aug 29, 2024

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem description

Related to ts-node, tsx only loses type checking and gain other features.

Source: https://github.com/privatenumber/ts-runtime-comparison

Proposed solution

Replace ts-node with tsx (this will fix #3609)

Alternatives considered

Add support to tsx

Additional information

Close #3609 if ts-node is replaced with tsx

@rtritto
Copy link
Author

rtritto commented Sep 21, 2024

tsx can replace rechoir (missing ESM support #3671 (comment)) and ts-node dependencies.
tsx handles the preparation and running of ESM/TypeScript modules out of the box (manual setup preparations, like rechoir.prepare, are no longer needed). So files in ESM/TypeScript format can directly import or require.

FYI @caoxiemeihao @erickzhao @MarshallOfSound

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

No branches or pull requests

1 participant