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

refactor: patch Node.js REPL to add TypeScript support #125

Merged
merged 14 commits into from
Oct 22, 2022

Conversation

privatenumber
Copy link
Owner

@privatenumber privatenumber commented Oct 22, 2022

Problem

Previously, tsx was creating it's own REPL, which diverged and lacked functionality from Node.js's default REPL. This also required that tsx re-implement flag handling logic to match Node.js.

Changes

Instead of creating a new REPL, patch Node.js' so that we get Node.js's better REPL for free and also delegate handling the command line flags.

Other info

Since we are no longer handling how Node.js should interpret command-line flags, this may benefit #111

@privatenumber privatenumber merged commit d0dfcf4 into develop Oct 22, 2022
@privatenumber privatenumber deleted the patch-repl branch October 22, 2022 16:13
@redstonekasi redstonekasi mentioned this pull request Mar 17, 2023
1 task
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant