@@ -49,42 +49,47 @@ function dodep() {
4949 [ " $curbranch " != ' develop' ] && clone $org $repo develop
5050 } || return $?
5151
52- (
53- cd $repo
54- echo " $repo set to branch " ` git rev-parse --abbrev-ref HEAD`
55- )
52+ echo " $repo set to branch " ` git -C " $repo " rev-parse --abbrev-ref HEAD`
5653
5754 mkdir -p node_modules
5855 rm -r " node_modules/$repo " 2> /dev/null || true
5956 ln -sv " ../$repo " node_modules/
57+
58+ (
59+ cd $repo
60+ npm install
61+ )
6062}
6163
64+ # #############################
65+
6266echo -en ' travis_fold:start:matrix-js-sdk\r'
6367echo ' Setting up matrix-js-sdk'
6468
6569dodep matrix-org matrix-js-sdk
66- (
67- cd node_modules/matrix-js-sdk
68- npm install
69- )
7070
7171echo -en ' travis_fold:end:matrix-js-sdk\r'
7272
73+ # #############################
74+
7375echo -en ' travis_fold:start:matrix-react-sdk\r'
7476echo ' Setting up matrix-react-sdk'
7577
7678dodep matrix-org matrix-react-sdk
7779
78- mkdir -p node_modules/matrix-react-sdk/node_modules
80+ # replace the version of js-sdk that got pulled into react-sdk with a symlink
81+ # to our version. Make sure to do this *after* doing 'npm i' in react-sdk,
82+ # otherwise npm helpfully moves another-json from matrix-js-sdk/node_modules
83+ # into matrix-react-sdk/node_modules.
84+ #
85+ # (note this matches the instructions in the README.)
86+ rm -r node_modules/matrix-react-sdk/node_modules/matrix-js-sdk
7987ln -s ../../matrix-js-sdk node_modules/matrix-react-sdk/node_modules/
8088
81- (
82- cd node_modules/matrix-react-sdk
83- npm install
84- )
85-
8689echo -en ' travis_fold:end:matrix-react-sdk\r'
8790
91+ # #############################
92+
8893# Link the reskindex binary in place: if we used npm link,
8994# npm would do this for us, but we don't because we'd have
9095# to define the npm prefix somewhere so it could put the
0 commit comments