From 6e3dff485788426e94b7fad0edb1717e3f0c9f40 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期四, 14 十一月 2024 11:24:06 +0800 Subject: [PATCH] selfAdapt --- scripts/build.js | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index dd20158..8df5a98 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -1,4 +1,6 @@ const path = require('path'); +const fs = require('fs-extra'); + const { copyFile, distDir, @@ -11,15 +13,24 @@ firstCustomerName, checkCustomer, formatDate, - logSuccess + logSuccess, + logWarn, + rootDir, + publicDir, + changeBranch } = require('./helper'); const { execSync } = require('child_process'); if (customerList?.length !== 1) { logError(`璇锋纭娇鐢ㄥ懡浠� 鈥渘pm run build customer鈥濓紙鐩墠鍙敮鎸佷竴娆¢儴缃蹭竴涓級`); exit(); // 閫�鍑鸿剼鏈� } + checkCustomer('npm run build', firstCustomerName); + copyFile(); + + + // 鏇存敼 import.meta.glob updateImportGlob(); try { -- Gitblit v1.9.3