Skip to content

Commit dca59d6

Browse files
authored
fix: set maxRetries to 10 when deleting assets folder (#478)
Set `maxRetries` option to 10 when deleting the assets folder copied over by the legacy html generator. Related: nodejs/node#54561 Signed-off-by: flakey5 <[email protected]>
1 parent c35cb2f commit dca59d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generators/legacy-html/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default {
175175
// Removes the current assets directory to copy the new assets
176176
// and prevent stale assets from existing in the output directory
177177
// If the path does not exists, it will simply ignore and continue
178-
await rm(assetsFolder, { recursive: true, force: true });
178+
await rm(assetsFolder, { recursive: true, force: true, maxRetries: 10 });
179179

180180
// We copy all the other assets to the output folder at the end of the process
181181
// to ensure that all latest changes on the styles are applied to the output

0 commit comments

Comments
 (0)