Skip to content

[infra] Add Volta config for Node and Yarn#715

Open
everettbu wants to merge 1 commit intomainfrom
main-36044
Open

[infra] Add Volta config for Node and Yarn#715
everettbu wants to merge 1 commit intomainfrom
main-36044

Conversation

@everettbu
Copy link
Copy Markdown

Mirror of facebook/react#36044
Original author: Arman19941113


Summary

Add a volta field to package.json so contributors using Volta automatically get the repo's expected Node.js and Yarn versions.

Why

This repo already declares:

  • Node.js via .nvmrc
  • Yarn via packageManager

This PR does not change the existing workflow. It only adds optional metadata for contributors who use Volta.

Notes

This is intended only as a small DX improvement for Volta users. If adding tool-specific metadata is not desirable for this repo, I’m happy to close this PR.

@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Mar 14, 2026

Greptile Summary

Adds a volta field to package.json specifying Node.js 20.19.0 and Yarn 1.22.22, so contributors using Volta automatically get the correct toolchain versions. The pinned versions are consistent with the existing .nvmrc (v20.19.0) and packageManager (yarn@1.22.22) declarations. This is a metadata-only change with no impact on builds, tests, or non-Volta workflows.

Confidence Score: 5/5

  • This PR is safe to merge — it only adds optional Volta metadata with no behavioral changes.
  • The change is purely additive metadata in package.json. The Node and Yarn versions exactly match the existing .nvmrc and packageManager fields. No code, scripts, dependencies, or build configuration are affected.
  • No files require special attention.

Important Files Changed

Filename Overview
package.json Adds a volta config block with Node 20.19.0 and Yarn 1.22.22, matching existing .nvmrc and packageManager values. No issues found.

Last reviewed commit: d730778

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants