Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/spec/scripts/build-schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const OUT_DIR = path.resolve(__dirname, '../json-schema');
// Clean output directory ensures no stale files remain
if (fs.existsSync(OUT_DIR)) {
console.log(`Cleaning output directory: ${OUT_DIR}`);
fs.rmSync(OUT_DIR, { recursive: true, force: true });
fs.rmSync(OUT_DIR, { recursive: true, force: true, maxRetries: 3, retryDelay: 100 });
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same ENOTEMPTY error could occur in build-docs.ts which also uses recursive directory removal. Consider applying the same retry logic to the rmSync call on line 246 of build-docs.ts for consistency and to prevent similar CI failures.

Copilot uses AI. Check for mistakes.
}

// Ensure output directory exists
Expand Down
Loading