Skip to content

Commit 7db294d

Browse files
motiz88facebook-github-bot
authored andcommitted
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
1 parent 89efa1a commit 7db294d

File tree

1 file changed

+23
-0
lines changed
  • packages/react-native-gradle-plugin

1 file changed

+23
-0
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace")
2+
3+
yarn_workspace(
4+
name = "yarn-workspace",
5+
srcs = glob(
6+
["**/*.js"],
7+
exclude = [
8+
"**/__fixtures__/**",
9+
"**/__flowtests__/**",
10+
"**/__mocks__/**",
11+
"**/__server_snapshot_tests__/**",
12+
"**/__tests__/**",
13+
"**/node_modules/**",
14+
"**/node_modules/.bin/**",
15+
"**/.*",
16+
"**/.*/**",
17+
"**/.*/.*",
18+
"**/*.xcodeproj/**",
19+
"**/*.xcworkspace/**",
20+
],
21+
),
22+
visibility = ["PUBLIC"],
23+
)

0 commit comments

Comments
 (0)