From eec26421ff9386970a52170306708c18997fd13e Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Sun, 28 Jun 2026 23:45:54 -0700 Subject: [PATCH] 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 --- scripts/js-api/build-types/buildApiSnapshot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/js-api/build-types/buildApiSnapshot.js b/scripts/js-api/build-types/buildApiSnapshot.js index c808012ebe2..c2c7bd37f30 100644 --- a/scripts/js-api/build-types/buildApiSnapshot.js +++ b/scripts/js-api/build-types/buildApiSnapshot.js @@ -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`, );