Skip to content

Commit 67ae8f5

Browse files
committed
Improve git-monorepo-usage-trick for es6 imports
1 parent 9293ac1 commit 67ae8f5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎git-monorepo-usage-trick‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env bash
22

3-
# Trick to convert require("bs-react-native*
4-
# to require("bs-react-native/bs-react-native*
3+
# Trick to convert
4+
# `require("bs-react-native*` to `require("bs-react-native/bs-react-native*`
5+
# `from "bs-react-native*` to `from "bs-react-native/bs-react-native*`
56
# only necessary when you are using git repo as a dep
67

78
sed -i '' -e 's/require("bs-react-native\//require("bs-react-native\/bs-react-native\//g' $1
9+
sed -i '' -e 's/from "bs-react-native\//from "bs-react-native\/bs-react-native\//g' $1

0 commit comments

Comments
 (0)