From 927581f415ff443f2bb153405d799ecf4822894f Mon Sep 17 00:00:00 2001 From: flakey5 <73616808+flakey5@users.noreply.github.com> Date: Sun, 2 Nov 2025 21:26:15 -0800 Subject: [PATCH] fix: set `maxRetries` to 10 when deleting assets folder Set `maxRetries` option to 10 when deleting the assets folder copied over by the legacy html generator. Related: https://github.com/nodejs/node/issues/54561 Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com> --- src/generators/legacy-html/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators/legacy-html/index.mjs b/src/generators/legacy-html/index.mjs index cdebe882..f8c1e58f 100644 --- a/src/generators/legacy-html/index.mjs +++ b/src/generators/legacy-html/index.mjs @@ -175,7 +175,7 @@ export default { // Removes the current assets directory to copy the new assets // and prevent stale assets from existing in the output directory // If the path does not exists, it will simply ignore and continue - await rm(assetsFolder, { recursive: true, force: true }); + await rm(assetsFolder, { recursive: true, force: true, maxRetries: 10 }); // We copy all the other assets to the output folder at the end of the process // to ensure that all latest changes on the styles are applied to the output