code: async function writeFile(filePath, data) {
    try {
      await recursiveMkdir(path.dirname(filePath))
      return await writeFileSync(filePath, data, 'utf8')
    } catch (err) {
      // eslint-disable-next-line no-console
      return console.error(err)
    }
  }
docs: 写文件