Skip to content

Commit 38db553

Browse files
committed
chore: update scripts/install-all.ts
1 parent 8d3879c commit 38db553

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/install-all.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ async function installWithConcurrency(tasks: InstallTask[], concurrency: number)
6262
}
6363

6464
async function installInSubdirs(dir: string) {
65+
// check if dir exists
66+
if (!existsSync(dir)) {
67+
console.log(`Directory ${dir} does not exist, skip installation`);
68+
return;
69+
}
70+
6571
const entries = readdirSync(dir, { withFileTypes: true });
6672
const tasks: InstallTask[] = [];
6773

0 commit comments

Comments
 (0)