react/scripts
Ricky 6b35ff766a
Move @generated from build to sync (#29799)
## Overview

Reverts https://github.com/facebook/react/pull/26616 and implements the
suggested way instead.

This change in #26616 broken the internal sync command, which now
results in duplicated `@generated` headers. It also makes it harder to
detect changes during the diff train sync. Instead, we will check for
changes, and if there are changes sign the files and commit them to the
sync branch.

## Strategy

The new sync strategy accounts for the generated headers during the
sync:
- **Revert Version**: Revert the version strings
- **Revert @generated**: Re-sign the files (will be the same hash as
before if unchanged)
- **Check**: Check if there are changes **if not, skip**
- **Re-apply Version**: Now add back the new version string
- **Re-sign @generated**: And re-generate the headers

Then commit to branch. This ensures that if there are no changes, we'll
skip.

---------

Co-authored-by: Timothy Yung <yungsters@gmail.com>
2024-06-10 10:16:40 -04:00
..
babel Include regular stack trace in serialized errors from Fizz (#28684) 2024-03-30 11:08:54 -04:00
bench Don't minify symbols in production builds (#28881) 2024-04-20 11:23:46 -04:00
circleci Remove @providesModule remnants (#28720) 2024-04-03 09:10:00 -04:00
devtools chore[devtools/release-scripts]: update messages / fixed npm view com… (#26660) 2023-04-19 10:05:16 +01:00
error-codes [Flight] Allow aborting during render (#29764) 2024-06-06 14:41:27 -07:00
eslint [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
eslint-rules Set the current fiber to the source of the error during error reporting (#29044) 2024-05-23 12:39:52 -04:00
flags Better NEXT_MAJOR support for RN flags (#28583) 2024-03-22 13:02:04 -04:00
flow [Fiber] Use Owner/JSX Stack When Appending Stacks to Console (#29206) 2024-05-25 11:58:17 -04:00
git Remove leftover env variable logic in pre-commit hook 2015-09-01 14:35:47 -07:00
jest [Flight][Fizz] schedule work async (#29551) 2024-06-06 10:07:24 -07:00
perf-counters [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
prettier [useFormState] Allow sync actions (#27571) 2023-10-31 23:32:31 -04:00
print-warnings Remove WARNINGS file from FB (#27820) 2023-12-08 16:21:15 -05:00
release Update build script to automatically generate RCs (#29736) 2024-06-03 12:21:21 -04:00
rollup Move @generated from build to sync (#29799) 2024-06-10 10:16:40 -04:00
shared Remove 2 no longer existing files from inlinedHostConfig (#29027) 2024-05-14 10:07:00 -04:00
tasks Bug: yarn flow dom does not exist, so console should suggest yarn flow dom-node (#26213) 2023-02-21 21:30:34 +01:00