Skip to content

Restrict peer-dependency version of TypeScript #1684

Closed
@hediet

Description

@hediet

To reduce chances of unrelated breaking changes in TypeScript, I suggest that ts-node has a more restrictive peer-dependency constraint on TypeScript.

Currently, it is just >= 2.7:

"typescript": ">=2.7"

However, I think it is better to explicitly list all major versions:
"typescript": "^2.7 || ^3.0 || ^4.0"

@andrewbranch

Again, thanks for creating & maintaining this tool! It allowed us to migrate some ugly untyped JS build scripts to nicely typed TypeScript build scripts :)

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