From 64fe67695be3c038414c5ed3e02d487c449702b6 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Thu, 7 Jul 2022 08:57:37 -0700 Subject: [PATCH] Move *Bundle.js exclude patterns into js_glob() Summary: These changes are a side-effect of a Meta-internal Buck macro change. This does not affect how RNTester is built in open source. Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D37648363 fbshipit-source-id: 6fd5d56a7a7a9ea71dc3d0df91e510fcd45a1e17 --- ReactAndroid/src/androidTest/js/BUCK | 1 + tools/build_defs/js_glob.bzl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/androidTest/js/BUCK b/ReactAndroid/src/androidTest/js/BUCK index 51ad794f27b8fb..b3b4373100850a 100644 --- a/ReactAndroid/src/androidTest/js/BUCK +++ b/ReactAndroid/src/androidTest/js/BUCK @@ -15,6 +15,7 @@ rn_library( "**/*.command", "**/*.md", ], + force_include_bundles = True, ), labels = [ "pfh:ReactNative_CommonInfrastructurePlaceholder", diff --git a/tools/build_defs/js_glob.bzl b/tools/build_defs/js_glob.bzl index 3dc1ffd5ae5c31..c35334ced8df17 100644 --- a/tools/build_defs/js_glob.bzl +++ b/tools/build_defs/js_glob.bzl @@ -17,7 +17,7 @@ js_glob_exts = ( "png", ) -def js_glob(dirs, excludes = []): +def js_glob(dirs, excludes = [], force_include_bundles = False): globs = [] for glob_dir in dirs: if glob_dir == ".":