ts-node
ts-node copied to clipboard
Fix indefinite wait and simplify per De Morgan's law
First commit fixes the bug as described. Second commit simplifies comparison chain by using De Morgan's law.
Note: as described on the referred issue, there's an exception being printed with the commit, however the commit is unrelated to the exception, it's a problem elsewhere (maybe even fixed in other PRs, I've seen there something related to "newer TypeScript support"), because if TS deps are downgraded, exception disappears.
Fixes: https://github.com/TypeStrong/ts-node/issues/2150