mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-15 01:24:07 -05:00
feat: dlx timeout & retry (#10512)
This commit is contained in:
committed by
Zoltan Kochan
parent
0366516a76
commit
6065d2e196
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`
|
||||
@@ -102,6 +102,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