Skip to content

Convert project from ts-node to native TypeScript support in Node.js #1

@Alex-AK

Description

@Alex-AK

We’re looking to modernize our TypeScript setup by switching from ts-node (and tsc) to Node.js’s native TypeScript support, as outlined in the official guide:
🔗 https://nodejs.org/en/learn/typescript/run-natively

Goals

  • Remove dependency on ts-node and typescript as a build step
  • Use .ts files directly with Node.js runtime
  • Simplify dev tooling and startup scripts

Tasks

  • Remove ts-node, typescript, and any related dependencies (unless still needed for type-checking or other tooling)
  • Update package.json scripts to use node --loader tsx or similar
  • Refactor imports (e.g., ensure use of file extensions like .js if needed)
  • Ensure compatibility with ESM (if the project uses it)
  • Update documentation (README.md, contributing guides, etc.)
  • Test dev and prod workflows

References

Why?

  • Native TypeScript support improves cold start performance
  • Reduces dependency surface
  • Aligns with evolving Node.js ecosystem

If you’re interested in helping with this migration, feel free to comment or open a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions