We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38db553 commit 3fbdb9aCopy full SHA for 3fbdb9a
modules/tool/build/index.ts
@@ -7,6 +7,13 @@ const tool = process.argv[2] || '*';
7
8
export const buildAllTools = async () => {
9
// 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
17
const tools = await readdir(toolsSourceDir);
18
const promises: Promise<void>[] = [];
19
for await (const tool of tools) {
0 commit comments