Skip to content

Remove tsx and tslib#56

Open
JamieB-gu wants to merge 1 commit into
mainfrom
remove-tsx-tslib
Open

Remove tsx and tslib#56
JamieB-gu wants to merge 1 commit into
mainfrom
remove-tsx-tslib

Conversation

@JamieB-gu
Copy link
Copy Markdown
Contributor

Recent versions of Node allow you to run TypeScript files directly, by stripping the types and running the files as JavaScript1. As a result, we no longer need tsx to do this for us.

The only code change required to make this work is updating an import of a type to use the type import syntax, so that Node knows to remove it rather than treating it as a value import.

Footnotes

  1. https://nodejs.org/learn/typescript/run-natively

Recent versions of Node allow you to run TypeScript files directly, by
stripping the types and running the files as JavaScript. As a result, we
no longer need `tsx` to do this for us.

The only code change required to make this work is updating an import of
a type to use the `type` import syntax, so that Node knows to remove it
rather than treating it as a value import.
@JamieB-gu JamieB-gu requested a review from a team as a code owner May 27, 2026 16:26
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.

1 participant