wujingjing
2024-09-09 a8af2bc8fda6e0311d49343dd6e154a6ef30348c
scripts/dev.js
@@ -1,5 +1,15 @@
const { copyFile ,checkCustomer,firstCustomerName} = require('./helper');
const { copyFile, checkCustomer, firstCustomerName, isPro } = 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) {}
}
checkCustomer('npm run dev', firstCustomerName);
copyFile();