From b4c584f8aa135b26deab381662b67746627d8eaf Mon Sep 17 00:00:00 2001 From: Booker Zhao Date: Thu, 17 Sep 2020 14:43:05 +0800 Subject: [PATCH] ci(scripts): update ci scripts --- scripts/local-e2e.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/scripts/local-e2e.js b/scripts/local-e2e.js index 3f45a1752..076b925aa 100644 --- a/scripts/local-e2e.js +++ b/scripts/local-e2e.js @@ -19,13 +19,12 @@ async function main() { await login(); const templates = await getTemplates(); console.log(templates); - return Promise.all( - templates - .filter((template) => { - return template.path !== 'taro-starter'; - }) - .map(installTemplate) - ); + + for (let template of templates) { + if (template.path !== 'taro-starter') { + await installTemplate(template); + } + } } async function forkTemplate() {