yangyin
2024-09-09 dd215a74b0e645c2980b2d023e4cabd7f1e44824
scripts/helper.js
@@ -338,6 +338,21 @@
   logSuccess(`${formatDate(new Date(), 'HH:MM:SS')} > 🎉🎉🎉【${customerList.join(',')}】项目已成功部署!🎉🎉🎉`);
};
/**
 * 切换分支
 */
const changeBranch = () =>{
   if (isPro) {
      try {
         execSync('git checkout master', { stdio: 'inherit' });
      } catch (error) {}
   } else {
      try {
         execSync('git checkout test', { stdio: 'inherit' });
      } catch (error) {}
   }
}
module.exports = {
   isPro,
   firstCustomerName,
@@ -369,4 +384,6 @@
   updateImportGlob,
   restoreImportGlob,
   changeBranch
};