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 };