Skip to content

Use unjs/jiti instead of ts-nodeΒ #30718

@yusufkandemir

Description

@yusufkandemir

What would you like?

Use https://github.com/unjs/jiti instead of ts-node to load cypress.config.ts or anything else, if any.

Why is this needed?

The last stable release of ts-node was a year ago: https://github.com/TypeStrong/ts-node/releases/tag/v10.9.2
There seems to be a clear maintenance problem, as can be seen here: TypeStrong/ts-node#2077

As can be seen in #30715, #30318, #30101, and others, TypeScript config loading has been problematic, due to the underlying tool, ts-node.

If Cypress switches to a more modern and maintained tool like unjs/jiti or https://github.com/privatenumber/tsx, most (if not all) problems would be solved. Since the tools are still actively being maintained, as opposed to ts-node, it will be more likely to get fixes for newly popping problems due to updated Node or TS specs.

Other

No response

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