Skip to content

Commit e206ba6

Browse files
author
一个小瘪三
committed
fix(projects): update script sync
1 parent 29a449d commit e206ba6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/sync.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ const pkgs = ['base', 'ts', 'vue', 'vue2', 'react'];
77

88
const requestUrls = pkgs.map(item => requestUrl + (item ? `-${item}` : ''));
99

10-
await Promise.all(requestUrls.map(url => fetch(url)));
10+
async function fetchData() {
11+
await Promise.all(requestUrls.map(url => fetch(url)));
12+
}
13+
14+
fetchData();

0 commit comments

Comments
 (0)