From 7db294d6d5b00a38f305dd52be3e0961f35695c8 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Fri, 28 Jan 2022 08:20:35 -0800 Subject: [PATCH] Create @fb-tools-support/yarn package Summary: Creates a new package called `fb-tools-support/yarn` and moves the `getWorkspacesFromYarn` function (currently duplicated almost verbatim in two places) into that shared location. Also, gets `yarn postinstall` to work again and runs it in `xplat/js` - this materialises some new BUCK files that weren't added when their respective Yarn workspaces were created. Reviewed By: rh389 Differential Revision: D33826945 fbshipit-source-id: 02e2db8b210303ed4f6d24a777a2e0094022bd5d --- packages/react-native-gradle-plugin/BUCK | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/react-native-gradle-plugin/BUCK diff --git a/packages/react-native-gradle-plugin/BUCK b/packages/react-native-gradle-plugin/BUCK new file mode 100644 index 00000000000000..8fd38289431bdb --- /dev/null +++ b/packages/react-native-gradle-plugin/BUCK @@ -0,0 +1,23 @@ +load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") + +yarn_workspace( + name = "yarn-workspace", + srcs = glob( + ["**/*.js"], + exclude = [ + "**/__fixtures__/**", + "**/__flowtests__/**", + "**/__mocks__/**", + "**/__server_snapshot_tests__/**", + "**/__tests__/**", + "**/node_modules/**", + "**/node_modules/.bin/**", + "**/.*", + "**/.*/**", + "**/.*/.*", + "**/*.xcodeproj/**", + "**/*.xcworkspace/**", + ], + ), + visibility = ["PUBLIC"], +)