A framework for building native applications using React
Add error when running build script after prepack (#55914)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55914 Introduce a clear error message if running `yarn build` again after `yarn prepack` (which will have applied the `"publishConfig"` field to each `package.json`, just ahead of publishing to npm). This state should never happen in CI or local dev, but can occur if repeat-running `yarn test-release-local` without `yarn test-release-local-clean`. Introducing a validation error is preferable over making this idempotent (logic would be complex + fragile) for this rare + out-of-design edge case. Changelog: [Internal] Reviewed By: alanleedev Differential Revision: D95215735 fbshipit-source-id: 5a9be44f0d0ae1f2721eed2b11088466a4ff7f72
A
Alex Hunt committed
238bd2452ec0150d37d8f2ee58452be0181d02a6
Parent: 7f7dbe7
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 3/4/2026, 5:23:50 PM