diff --git a/packages/size-limit/rm.js b/packages/size-limit/rm.js index b8280dfa..b8aa2ce4 100644 --- a/packages/size-limit/rm.js +++ b/packages/size-limit/rm.js @@ -5,9 +5,9 @@ export async function rm(dir) { if (!fs.rm) { /* c8 ignore next 3 */ if (existsSync(dir)) { - await fs.rmdir(dir, { recursive: true }) + await fs.rmdir(dir, { maxRetries: 3, recursive: true }) } } else { - await fs.rm(dir, { force: true, recursive: true }) + await fs.rm(dir, { force: true, maxRetries: 3, recursive: true }) } }