Review the current package.json and tsconfig.json files in the repository. Follow the guide at https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c to convert the module system to ESM. Ensure all imports/exports are updated accordingly. Test the changes with the existing test suite.