Skip to content

fix pnpm beta scaffolding command - #310

Open
Kinfe123 wants to merge 1 commit into
mainfrom
fix/pnpm-latest-beta-scaffolding
Open

fix pnpm beta scaffolding command#310
Kinfe123 wants to merge 1 commit into
mainfrom
fix/pnpm-latest-beta-scaffolding

Conversation

@Kinfe123

@Kinfe123 Kinfe123 commented Aug 8, 2026

Copy link
Copy Markdown
Member

What changed

  • update every user-facing pnpm scaffolding example to scope minimumReleaseAge=0 to the create command
  • explain the pnpm 11 behavior on the getting-started and package pages
  • keep npm, Yarn, and Bun commands unchanged

Why

pnpm 11 protects users by ignoring package versions published within the last 24 hours when resolving a dist-tag. As a result, pnpm create @farm.js/app@beta can select an older @farm.js/create-app beta even though npm's beta tag points to the newest release. The resolver makes this choice before the FARMJS initializer runs, so it cannot be corrected inside the scaffolder.

The scoped config override preserves the simple @beta workflow while applying only to this invocation; it does not change the user's global pnpm policy.

Impact

New users copying a pnpm command from the README, docs homepage, getting-started guide, playground, package README, or auth starter READMEs receive the newest published FARMJS beta immediately.

Verification

  • reproduced pnpm 11.18.0 selecting beta.20 from a fresh store while npm's beta tag pointed to beta.22
  • confirmed pnpm --config.minimumReleaseAge=0 create @farm.js/app@beta ... generated beta.22 with both pnpm 11.18.0 and pnpm 8.12.1
  • corepack pnpm exec oxfmt --check ...
  • node --test packages/create-farm-app/test/create-app.test.mjs

Summary by cubic

Fixes pnpm beta scaffolding by scoping --config.minimumReleaseAge=0 to pnpm create so pnpm 11 installs the newest beta of @farm.js/create-app. Docs and examples updated; npm, Yarn, and Bun remain unchanged.

  • Bug Fixes
    • Replaced pnpm create @farm.js/app@beta ... with pnpm --config.minimumReleaseAge=0 create @farm.js/app@beta ... in README, docs, package and template READMEs, playground, and OG generator.
    • Added notes explaining pnpm 11’s 24‑hour new-version hold and that the scoped override doesn’t change global policy.

Written for commit eb93f35. Summary will update on new commits.

Review in cubic

@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 8, 2026 10:31am
farm.js Ready Ready Preview Aug 8, 2026 10:31am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant