| | |
| | | const path = require('path'); |
| | | const fs = require('fs-extra'); |
| | | |
| | | const { |
| | | copyFile, |
| | | distDir, |
| | |
| | | firstCustomerName, |
| | | checkCustomer, |
| | | formatDate, |
| | | logSuccess |
| | | logSuccess, |
| | | logWarn, |
| | | rootDir, |
| | | publicDir, |
| | | changeBranch |
| | | } = require('./helper'); |
| | | const { execSync } = require('child_process'); |
| | | if (customerList?.length !== 1) { |
| | | logError(`请正确使用命令 “npm run build customer”(目前只支持一次部署一个)`); |
| | | exit(); // 退出脚本 |
| | | } |
| | | changeBranch(); |
| | | |
| | | checkCustomer('npm run build', firstCustomerName); |
| | | |
| | | copyFile(); |
| | | |
| | | |
| | | |
| | | // 更改 import.meta.glob |
| | | updateImportGlob(); |
| | | try { |