function writeGeneratedFile(outputPath, contents) {
  const modifiedFile = [
    '// @ts-nocheck\n',
    '// generated by yarn build-cdt-lib\n',
    '/* eslint-disable */\n',
    '"use strict";\n',
    contents,
  ].join('');

  fs.writeFileSync(outputPath, modifiedFile);
}
@param {string} outputPath
@param {string} contents