-
Notifications
You must be signed in to change notification settings - Fork 7
/
fixdeps.sh
executable file
·15 lines (14 loc) · 1000 Bytes
/
fixdeps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
sed -i".bkp" -e "s/ existingModule \&\&/false \&\&/g" ./node_modules/jest-haste-map/build/index.js
sed -i".bkp" -e "s/ existingModule \&\&/false \&\&/g" ./packages/identity-wallet-mobile/node_modules/jest-haste-map/build/index.js
sed -i".bkp" -e "s/ existingModule \&\&/false \&\&/g" ./packages/mobile-ui-storybook/node_modules/jest-haste-map/build/index.js
# Fix for dupilcated react versions
# Multiple react versions could be placed in different packages due to third party libs
# It will remove them and rely just in the root react
rm -rf ./packages/**/node_modules/react
rm -rf ./packages/**/node_modules/react-redux
rm -rf ./packages/**/node_modules/styled-components
rm -rf ./packages/**/node_modules/ethereumjs-util
rm -rf ./packages/**/node_modules/keccak
mv ./packages/identity-wallet-mobile/node_modules/react-native-svg ./node_modules
mv ./packages/identity-wallet-mobile/node_modules/react-native-linear-gradient ./node_modules
rm -rf ./packages/mobile-ui/node_modules/react-native-svg