Skip to content

Commit 16c73ea

Browse files
Re add apply_patches.sh, it had disappeared
1 parent 03cabfe commit 16c73ea

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"test:cypress:open": "cypress open",
5757
"coverage": "yarn test --coverage",
5858
"analyse:unused-exports": "node ./scripts/analyse_unused_exports.js",
59-
"postinstall": "patch-package"
59+
"postinstall": "./scripts/apply_patches.sh"
6060
},
6161
"dependencies": {
6262
"@matrix-org/olm": "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.12.tgz",

scripts/apply_patches.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
#
3+
# Script to apply the patches in patches directory, using patch-package.
4+
set -e
5+
6+
for d in patches/*/ ; do
7+
echo "Patching $d..."
8+
yarn patch-package --patch-dir "$d"
9+
echo "...$d done."
10+
done

0 commit comments

Comments
 (0)