diff --git a/packages/rn-tester/BUCK b/packages/rn-tester/BUCK index 8fd38289431bdb..c2519ae0dc4a3b 100644 --- a/packages/rn-tester/BUCK +++ b/packages/rn-tester/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//tools/build_defs/oss:metro_defs.bzl", "rn_library") load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") yarn_workspace( @@ -21,3 +22,30 @@ yarn_workspace( ), visibility = ["PUBLIC"], ) + +rn_library( + name = "rn-tester", + srcs = glob( + [ + "js/**/*", + "NativeModuleExample/**/*", + "RCTTest/**/*", + ], + exclude = [ + "**/__*__/**", + "**/*.md", + "js/examples/WebSocket/http_test_server.js", + "js/examples/WebSocket/websocket_test_server.js", + ], + ), + labels = ["supermodule:xplat/default/public.react_native.playground"], + skip_processors = True, + visibility = ["PUBLIC"], + deps = [ + "//xplat/js:node_modules__nullthrows", + "//xplat/js:react-native", + "//xplat/js/RKJSModules/Libraries/Core:Core", + "//xplat/js/RKJSModules/vendor/react:react", + "//xplat/js/react-native-github/packages/assets:assets", + ], +) diff --git a/tools/build_defs/oss/metro_defs.bzl b/tools/build_defs/oss/metro_defs.bzl new file mode 100644 index 00000000000000..c95b311bb2dd1b --- /dev/null +++ b/tools/build_defs/oss/metro_defs.bzl @@ -0,0 +1,4 @@ +# metro-buck integration +def rn_library(**kwargs): + # Noop for now + pass