SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Fix updating peerDependencies for releases (#55630)

Summary:
Recently added `react-native/jest-preset` package is an optional peer dep to the main `react-native` package. However, it's version dep is not updated correctly for nightly builds.

Peer dep version for [latest nightly](https://www.npmjs.com/package/react-native/v/0.85.0-nightly-20260219-44901aaf9?activeTab=code) is :
```
"peerDependencies": {
    "eact-native/jest-preset": "0.84.0-main",
    // ....
  },
```

From my analysis this is because publishing scripts only update `deps` and `devDeps` but not `peerDeps`. Proposed change adds `peerDeps` to the list of potential deps locations to update

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[INTERNAL] [FIXED] - Fix peer deps version to `react-native/jest-preset`.

Pull Request resolved: https://github.com/facebook/react-native/pull/55630

Reviewed By: cipolleschi

Differential Revision: D93850121

Pulled By: huntie

fbshipit-source-id: 9f24cf302aa93c5b3721ebfd571171ee9e5af712
M
Maciej Jastrzębski committed
8a740acdbc016e5f66f44faa7e2e4e566b52d5be
Parent: 2111bec
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 2/20/2026, 11:07:00 AM