From f6952748f4f4bf484b88501ee04b4208a15b446b Mon Sep 17 00:00:00 2001 From: Sanjaiyan Parthipan Date: Tue, 16 Jul 2024 00:46:42 +0530 Subject: [PATCH] build: run async task in concurrent --- scripts/templates.mts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/templates.mts b/scripts/templates.mts index 989273ae5118..11ef2b385bdd 100644 --- a/scripts/templates.mts +++ b/scripts/templates.mts @@ -39,8 +39,10 @@ async function _runTemplate(inputPath: string, outputPath: string) { } export default async function (_options: {}): Promise { - await _runTemplate('./templates/readme.ejs', '../README.md'); - await _runTemplate('./templates/contributing.ejs', '../CONTRIBUTING.md'); + await Promise.all([ + _runTemplate('./templates/readme.ejs', '../README.md'), + _runTemplate('./templates/contributing.ejs', '../CONTRIBUTING.md'), + ]); return 0; }