Move remaining js1 build-* commands under the build namespace (#57348)

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

Follow-up to the `js1 build-cxx-api` rename. Move `build-geo-screenshot-tests`, `build-js-api`, and `build-twui-screenshot-tests` under the `build` group so they sit next to their siblings (`js1 build assets`, `js1 build turbomodule`, etc.) instead of being top-level hyphenated outliers.

Each old top-level command stays as a hidden alias that prints a deprecation notice and delegates to the new module, so existing muscle memory and any out-of-tree scripts keep working.

Also updates the two places that emit the old command names into user-visible output: the TWUI template comment headers, and the JS API snapshot failure message.

Changelog:
[Internal]

Reviewed By: zeyap

Differential Revision: D109844649

fbshipit-source-id: 00623fa8b4d724e16a2dc62d196182c32a9fed64
This commit is contained in:
Pieter De Baets authored and meta-codesync[bot] committed 2026-06-28 23:45:54 -07:00
1 parent 54b88d9dea
commit eec26421ff
1 file changed
+1 -1
@@ -148,7 +148,7 @@ async function validateSnapshots(
// $FlowFixMe[prop-missing]
// $FlowFixMe[incompatible-type]
const diffResult = diff(prevSnapshot, newSnapshot, options);
const rerunCommand = isGitRepo() ? 'yarn build-types' : 'js1 build-js-api';
const rerunCommand = isGitRepo() ? 'yarn build-types' : 'js1 build js-api';
console.error(
`${styleText(['bold', 'inverse', 'red'], ' FAIL ')} ReactNativeApi.d.ts has changed. Please re-run '${rerunCommand}' and commit the updated snapshot.\n`,
);