Skip to content

Commit eb8ee4e

Browse files
jeremymengCopilot
andauthored
Exclude our own packages from pnpm minimumReleaseAge delay (#39471)
Copilot agent :copilot: (on behalf of @jeremymeng): ## Why pnpm 11 defaults `minimumReleaseAge` to 1440 minutes (1 day), delaying installation of any newly published package version to reduce the risk of pulling in a compromised release before it is caught and removed from the registry. That protection is valuable for third-party dependencies, but it also delays our own freshly published packages, which we trust and often need to consume immediately (e.g. right after a release). ## What Adds a `minimumReleaseAgeExclude` list to `pnpm-workspace.yaml` so our own packages bypass the maturation window and install as soon as they are published: - `@azure/*` - `@azure-rest/*` - `@typespec/ts-http-runtime` The exclusion matches by package name (glob patterns supported since pnpm 10.17.0) and applies to all versions. Third-party dependencies keep the default delay. ## Notes Verified pnpm parses the setting via `pnpm config get minimumReleaseAgeExclude`, which returned the three entries. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 22ca3d73-cbe1-4955-a722-77747ec347ad
1 parent 353fd07 commit eb8ee4e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pnpm-workspace.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ peerDependencyRules:
7070

7171
linkWorkspacePackages: true
7272

73+
# Exempt our own packages from the minimumReleaseAge delay so freshly published
74+
# Azure SDK packages (and the TypeSpec runtime we own) install immediately
75+
# instead of waiting out the default maturation window.
76+
minimumReleaseAgeExclude:
77+
- '@azure/*'
78+
- '@azure-rest/*'
79+
- '@typespec/ts-http-runtime'
80+
7381
# Ensure lockfile includes optional dependencies for all CI and development platforms
7482
# This prevents lockfile churn when running pnpm install on different OSes
7583
# Lists all OS/CPU combinations used in CI (Ubuntu, Windows, macOS) and dev machines

0 commit comments

Comments
 (0)