Skip to content

Document Node.js native TypeScript execution as an alternative in supported scenarios #2167

@joaopedrodcf

Description

@joaopedrodcf

Desired Behavior

Node since 22.6.0 supports the --experimental-strip-types flag allowing to run node if the project doesn't use enums,etc

We could document as a warning that in situations where users don't need those features that node doesn't support they can just use node, instead of ts-node reducing the necessity for an external dependency.

Is this request related to a problem?

Users on these situations with a recent node version and without need enums, etc are using ts-node unnecessarily introducing one more dependency on their project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions