Skip to content

Commit 42fa3f0

Browse files
authored
README: explain trick for monorepo
1 parent bcb725e commit 42fa3f0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ If you use this bindings from the git repo, be sure to use
2525
// ReactNative, WIP on zero-cost bindings (require bs-platform 5.0.0 & and reason-react hooks branch)
2626
"bs-react-native/bs-react-native-next"
2727
},
28+
// When used from git with the following path, bs-platform will use path that won't be working
29+
// (because deps are pointing to folder in folder)`
30+
// Your bundler (metro or webpack) will say that it can find `bs-react-native/whatever` and/or
31+
// `bs-react-native-next/whatever`
32+
// which is correct because it should be `bs-react-native/bs-react-native/whatever` / `bs-react-native/bs-react-native-next/whatever`
33+
// the trick below will correct path in generated JavaScript files
34+
// and will just need to be removed when you won't use git directly anymore
2835
"js-post-build": {
2936
"cmd": "./node_modules/bs-react-native/git-monorepo-usage-trick"
3037
}

0 commit comments

Comments
 (0)