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

stop using ts-node #1473

Open
ryoppippi opened this issue Jan 28, 2025 · 1 comment
Open

stop using ts-node #1473

ryoppippi opened this issue Jan 28, 2025 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@ryoppippi
Copy link
Contributor

ryoppippi commented Jan 28, 2025

Hi @samchon
I'm working on migrating typia to esm first.
As I'm working, I found some issues happens on ts-node. I investigate the reason and found that ts-node is not maintained for about two years.
I think there are a few choices to execute ts script files directory:

I think the last one is good because we can make use of node features

Please assign me if it is good for you

@samchon
Copy link
Owner

samchon commented Jan 28, 2025

Currently, ts-node is used in many scripts.

By the way, below two scripts of test package are especially required ts-node for the transform reason.

It is okay if the change does not break below two scripts.

By the way, ts-node does not require special maintenance, because of its characteristics. Also, another typia dependent package @nestia/sdk is still keep using the ts-node to dynamically import the nestia.config.ts file that is used for the SDK generation which imports the backend server application that needs transform process too - https://nestia.io/docs/sdk/.

Thus, I cannot sure that ts-node must be replaced, and it is possible to replace the ts-node by above packages you've mentioned. tsx and bun are not supporting the transformation process of the standard TypeScript compiler. Only one thing you can choose is using the --experimental-transform-types with node22 way, but as you know, it is still experimental feature.

@samchon samchon added the question Further information is requested label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants