Skip to content

Commit b7af3a8

Browse files
committed
fix(build): add subtree node_modules during postinstall
1 parent e987767 commit b7af3a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/tchap/postinstall.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ set -x
77

88
cd linked-dependencies
99
pushd matrix-react-sdk
10+
# Normally when dealing with a subtree and node_modules, it is good practice to merge them in the parent package.json.
11+
# However in our case nothing should overlaps since element and matrix-react-sdk are deeply interconnected.
12+
# Moreover, webpack will apply tree shaking to remove unecessary pacakges
13+
yarn install
1014
yarn unlink # :TCHAP: for local build, undo previous links if present.
1115
yarn link
1216
# yarn install --pure-lockfile

0 commit comments

Comments
 (0)