From 5f54386a6600a0ac86f9533ab740fdec054ef5a6 Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Fri, 3 Jan 2025 10:30:00 -0800 Subject: [PATCH] Add a BUCK target (#48457) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48457 Adding CI support will require executing through buck. Sandboxing means the package has to be well-formed to work, so this cleans up some earlier mess. - yarn workspace - check-api.sh to configure the environment correctly when running form sandcastle - explicity dependencies in our package.json This is the first step Changelog: [Internal] Reviewed By: GijsWeterings Differential Revision: D67726588 fbshipit-source-id: 7f8605695e323ef332550820b23b85d3af5f4d69 --- tools/api/check-api.sh | 92 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100755 tools/api/check-api.sh diff --git a/tools/api/check-api.sh b/tools/api/check-api.sh new file mode 100755 index 00000000000..edda70a51cf --- /dev/null +++ b/tools/api/check-api.sh @@ -0,0 +1,92 @@ +#!/bin/bash +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + +set -e + +ERR_CODE_UNCOMMITTED_API_CHANGE=1 +ERR_CODE_CANT_FIND_PROJECT=2 +ERR_CODE_BAD_COMMIT=3 + +WARNING_MESSAGE_HEADER=$(cat <