wujingjing
2024-12-30 f12fd0b36f027cbbae0fb322b237abe857a32e2b
scripts/dev.js
@@ -1,14 +1,6 @@
const { copyFile, checkCustomer, firstCustomerName, isPro } = require('./helper');
const { copyFile, checkCustomer, firstCustomerName, isPro,changeBranch } = require('./helper');
const { execSync } = require('child_process');
if (isPro) {
   try {
      execSync('git checkout master', { stdio: 'inherit' });
   } catch (error) {}
} else {
   try {
      execSync('git checkout test', { stdio: 'inherit' });
   } catch (error) {}
}
changeBranch();
checkCustomer('npm run dev', firstCustomerName);