mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-27 18:46:18 -04:00
feat: dlx timeout & retry (#10512)
This commit is contained in:
5
.changeset/curly-dryers-cheese.md
Normal file
5
.changeset/curly-dryers-cheese.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-script-runners": minor
|
||||
---
|
||||
|
||||
Add timeout & retry options to `pnpm dlx` / `pnpx`
|
||||
@@ -101,6 +101,13 @@ export async function handler (
|
||||
authConfig: opts.rawConfig,
|
||||
fullMetadata,
|
||||
filterMetadata: fullMetadata,
|
||||
retry: {
|
||||
factor: opts.fetchRetryFactor,
|
||||
maxTimeout: opts.fetchRetryMaxtimeout,
|
||||
minTimeout: opts.fetchRetryMintimeout,
|
||||
retries: opts.fetchRetries,
|
||||
},
|
||||
timeout: opts.fetchTimeout,
|
||||
})
|
||||
const resolvedPkgAliases: string[] = []
|
||||
const publishedBy = opts.minimumReleaseAge ? new Date(Date.now() - opts.minimumReleaseAge * 60 * 1000) : undefined
|
||||
|
||||
Reference in New Issue
Block a user