yangyin
2024-12-13 c6cf46f3e11e60f692e0b8d12188458ad1b6120e
scripts/build.js
@@ -16,14 +16,17 @@
   logSuccess,
   logWarn,
   rootDir,
   publicDir
   publicDir,
   changeBranch
} = require('./helper');
const { execSync } = require('child_process');
if (customerList?.length !== 1) {
   logError(`请正确使用命令 “npm run build customer”(目前只支持一次部署一个)`);
   exit(); // 退出脚本
}
checkCustomer('npm run build', firstCustomerName);
copyFile();