mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-02 19:22:52 -05:00
6
.changeset/proud-llamas-clap.md
Normal file
6
.changeset/proud-llamas-clap.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-script-runners": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
`pnpm dlx` should not fail when `minimumReleaseAge` is set [#10037](https://github.com/pnpm/pnpm/issues/10037).
|
||||
@@ -90,6 +90,7 @@ export async function handler (
|
||||
authConfig: opts.rawConfig,
|
||||
})
|
||||
const resolvedPkgAliases: string[] = []
|
||||
const publishedBy = opts.minimumReleaseAge ? new Date(Date.now() - opts.minimumReleaseAge * 60 * 1000) : undefined
|
||||
const resolvedPkgs = await Promise.all(pkgs.map(async (pkg) => {
|
||||
const { alias, bareSpecifier } = parseWantedDependency(pkg) || {}
|
||||
if (alias == null) return pkg
|
||||
@@ -98,6 +99,7 @@ export async function handler (
|
||||
lockfileDir: opts.lockfileDir ?? opts.dir,
|
||||
preferredVersions: {},
|
||||
projectDir: opts.dir,
|
||||
publishedBy,
|
||||
})
|
||||
return resolved.id
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user