code: function startUpgrade(dirPath, options) {
    try {
      fs.accessSync(path.join(dirPath, './package.json'))
      startUpgradeCustomComponent(dirPath, options)
    } catch (err) {
      // eslint-disable-next-line no-console
      console.log(`project is not a valid custom component project: ${dirPath}`)
    }
  }
docs: 开始升级