Skip to content

Commit 3fbdb9a

Browse files
committed
fix: build tools
1 parent 38db553 commit 3fbdb9a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/tool/build/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ const tool = process.argv[2] || '*';
77

88
export const buildAllTools = async () => {
99
// read all tools, and build them
10+
// check the existence of the tool directory
11+
12+
if (!existsSync(toolsSourceDir)) {
13+
console.log(`Tool directory ${toolsSourceDir} does not exist, skip build`);
14+
return;
15+
}
16+
1017
const tools = await readdir(toolsSourceDir);
1118
const promises: Promise<void>[] = [];
1219
for await (const tool of tools) {

0 commit comments

Comments
 (0)