Remove build package.json dirty state check (#55420)

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

After https://github.com/facebook/react-native/pull/54857 (use of the "publishConfig" field), this check is no longer necessary, since `yarn build` will no longer make changes to any checked in files.

In the (expectedly) rare case that `yarn build --prepack` changes are committed (only intended for CI), Flow will also fail independently.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D92397786

fbshipit-source-id: 872cc91b62295cdb6d8c2799cffb8a4cadc4106e
This commit is contained in:
Alex Hunt authored and meta-codesync[bot] committed 2026-02-05 09:14:33 -08:00
1 parent 11e257cec0
commit a25049b8dd
3 files changed
+7 -58

No files matched your search

+1 -2
View File
@@ -53,10 +53,9 @@ try {
describe('Test: feature flags codegen');
execAndLog(`${YARN_BINARY} run featureflags --verify-unchanged`);
describe('Test: eslint');
execAndLog(`${YARN_BINARY} run lint`);
describe('Test: No JS build artifacts');
execAndLog(`${YARN_BINARY} run build --validate`);
describe('Test: Validate JS API snapshot');
execAndLog(`${YARN_BINARY} run build-types --validate`);