piotrwitek / ts-mocha

Mocha thin wrapper that allows running TypeScript tests with TypeScript runtime (ts-node) to get rid of compilation complexity
MIT License
190 stars 25 forks source link

ts-node as peerDependency #71

Closed connorjclark closed 2 years ago

connorjclark commented 2 years ago

My project already is using ts-node (v10), but this package brings it's own (v7). Perhaps it'd be possible to set ts-node as a peer dep and defer to the user to bring in a specific version?

piotrwitek commented 2 years ago

not possible because of breaking changes. What's the root issue? Normally you can have different versions of the same package in the project without problem, so what's up with ts-node?

connorjclark commented 2 years ago

I don't recall specifically but I am leaning on some newer feature in the latest ts-node, so having tests run with something different is a cause for concern. (I'm one of those people using ts-node in production too 😆 )

Closing since infeasible.