From 1931d76359a458b7d31b8bfb955d07882672d4bb Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 09 九月 2024 14:18:13 +0800 Subject: [PATCH] publish.js --- scripts/publish.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/publish.js b/scripts/publish.js index 7a47652..24f47bc 100644 --- a/scripts/publish.js +++ b/scripts/publish.js @@ -1,6 +1,6 @@ const { execSync } = require('child_process'); -const { customerList, checkCustomerDirExist, logError,exit,firstCustomerName,changeBranch } = require('./helper'); +const { customerList, checkCustomerDirExist, logError,exit,firstCustomerName,changeBranch,deployEnv } = require('./helper'); // if (!customerList || customerList.length === 0) { // logError(`璇锋纭娇鐢ㄥ懡浠� 鈥渘pm run publish [customer1,customer2,customer3,...]鈥濓紝 // 閮ㄧ讲鍒扮敓浜х幆澧冨啓娉曪細customer:pro @@ -25,9 +25,9 @@ try { // 闅忎究鎷跨涓�涓敤浜� build - execSync(`npm run build ${firstCustomerName}`, { stdio: 'inherit' }); + execSync(`npm run build ${firstCustomerName}:${deployEnv}`, { stdio: 'inherit' }); } catch (error) {} try { - execSync(`npm run deploy "${customerList.join(' ')}"`, { stdio: 'inherit' }); + execSync(`npm run deploy ${firstCustomerName}:${deployEnv}`, { stdio: 'inherit' }); } catch (error) {} -- Gitblit v1.9.3