From b5b548b5fc015bdd727159b8f3d1916172c92d91 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期四, 31 十月 2024 13:07:41 +0800 Subject: [PATCH] 手机号登录 --- scripts/build.js | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index 2f7640d..8df5a98 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -16,31 +16,20 @@ logSuccess, logWarn, rootDir, - publicDir + 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(); -// 澶嶅埗amis-editor 鍒� public鏂囦欢澶逛腑 -const amisEditorPath = path.join(rootDir,'amis-editor'); -const targetPath = path.join(publicDir,'amis-editor') -const isExist = fs.pathExistsSync(amisEditorPath); -if(!isExist){ - logWarn('amis-editor 涓嶅瓨鍦紒'); -}else{ - const isExist = fs.pathExistsSync(targetPath); - if(!isExist){ - fs.mkdirSync(targetPath); - } - const res = fs.copySync(amisEditorPath,targetPath) - res ?? logSuccess('========= 宸查泦鎴� amis-editor =========') -} // 鏇存敼 import.meta.glob updateImportGlob(); -- Gitblit v1.9.3