mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-18 22:02:53 -04: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,
|
authConfig: opts.rawConfig,
|
||||||
})
|
})
|
||||||
const resolvedPkgAliases: string[] = []
|
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 resolvedPkgs = await Promise.all(pkgs.map(async (pkg) => {
|
||||||
const { alias, bareSpecifier } = parseWantedDependency(pkg) || {}
|
const { alias, bareSpecifier } = parseWantedDependency(pkg) || {}
|
||||||
if (alias == null) return pkg
|
if (alias == null) return pkg
|
||||||
@@ -98,6 +99,7 @@ export async function handler (
|
|||||||
lockfileDir: opts.lockfileDir ?? opts.dir,
|
lockfileDir: opts.lockfileDir ?? opts.dir,
|
||||||
preferredVersions: {},
|
preferredVersions: {},
|
||||||
projectDir: opts.dir,
|
projectDir: opts.dir,
|
||||||
|
publishedBy,
|
||||||
})
|
})
|
||||||
return resolved.id
|
return resolved.id
|
||||||
}))
|
}))
|
||||||
|
|||||||
Reference in New Issue
Block a user