function insertTs(name) {
  const IndexPath = path.resolve(__dirname, '../src/index.');
  const IndexFile = fs.readFileSync(IndexPath, { encoding: 'utf-8' });

  const moduleExpor = IndexFile.trim().split('\n');
  moduleExpor.push(`export * from './${name}';`);
  sortByModulePath(moduleExpor);

  fs.writeFileSync(IndexPath, `${moduleExpor.join('\n')}\n`);
}