Skip to content

Commit

Permalink
build: run async task in concurrent
Browse files Browse the repository at this point in the history
(cherry picked from commit f695274)
  • Loading branch information
sanjaiyan-dev authored and dgp1130 committed Jul 15, 2024
1 parent 96dc7e6 commit 7cafee5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/templates.mts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ async function _runTemplate(inputPath: string, outputPath: string) {
}

export default async function (_options: {}): Promise<number> {
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;
}

0 comments on commit 7cafee5

Please sign in to comment.