Skip to content

Commit 13801d3

Browse files
authored
feat: retry manifest fetch (#383)
1 parent a6b8342 commit 13801d3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

utils.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,15 @@ export async function runInRepo(options: RunOptions & RepoOptions) {
279279
}
280280

281281
if (overrides.rollup !== false || overrides.esbuild === true) {
282-
const viteManifest = await pacote.manifest(`vite@${options.release}`)
282+
const viteManifest = await pacote.manifest(`vite@${options.release}`, {
283+
retry: {
284+
// enable retry with same options with pnpm (https://pnpm.io/settings#fetchretries)
285+
fetchRetries: 2,
286+
fetchRetryFactor: 10,
287+
fetchRetryMintimeout: 10 * 1000,
288+
fetchRetryMaxtimeout: 60 * 1000,
289+
},
290+
})
283291

284292
// skip if `overrides.rollup` is `false`
285293
if (overrides.rollup !== false) {

0 commit comments

Comments
 (0)