workflow: run checkLink sequentially

This commit is contained in:
Haoqun Jiang
2019-09-25 01:42:27 +08:00
parent bd9442b092
commit f970d1a129

View File

@@ -51,6 +51,13 @@ function checkFiles (folder, all = false, recursive = false) {
checkFiles(path.resolve(__dirname, '../packages/@vue'), false, true)
checkFiles(path.resolve(__dirname, '../packages/@vue/cli/lib/promptModules'), true, true)
Promise.all(promises).catch(() => {
async function main () {
for (const p of promises) {
await p
}
}
main().catch(() => {
process.exit(1)
})