CJS/ESM issue with arktype

I installed arktype. It's a ESM thing, and it broke my building process.
To fix it, I had to switch to building with babel and had to set these values in tsconfig.json::
    "module": "ES2015",
    "moduleResolution": "Bundler"

However, now ts-node stopped working and hence - mocha and all my tests written in TS:
import { Yandex } from './clients';
^^^^^^
SyntaxError: Cannot use import statement outside a module


Any ideas?
Was this page helpful?