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

chore: replaces 'ts-node' with 'tsx' #125

Merged
merged 1 commit into from
Oct 1, 2023

Conversation

sverweij
Copy link
Owner

@sverweij sverweij commented Oct 1, 2023

Description

  • replaces 'ts-node' with 'tsx'

Motivation and Context

It's slightly (2x, in this repo) faster and slightly less cumbersome than ts-node to setup and maintain. Also more in line with what is (going to be) used in my other projects.

Faster?

ts-node typically takes 2.5s (ish)

$ yarn test
..................................................

50 passing (2.600 ms)

tsx:

$ y test
..................................................

50 passing (1.360 ms)

How Has This Been Tested?

  • green ci

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation only change
  • Refactor (non-breaking change which fixes an issue without changing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • 📖

    • My change doesn't require a documentation update, or ...
    • it does and I have updated it
  • ⚖️

    • The contribution will be subject to The MIT license, and I'm OK with that.
    • The contribution is my own original work.
    • I am ok with the stuff in CONTRIBUTING.md.

@socket-security
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
tsx 3.13.0 eval, network, filesystem, shell, environment +7 11.4 MB hirokiosame

🚮 Removed packages: [email protected]

@sverweij sverweij merged commit 2e2ec5b into main Oct 1, 2023
4 checks passed
@sverweij sverweij deleted the refactor/replace-ts-node-with-tsx branch October 1, 2023 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants