prune rather than reinstall
Some checks failed
/ lint (pull_request) Successful in 30s
/ build-aarch64 (pull_request) Has been cancelled
/ deploy-aarch64 (pull_request) Has been cancelled
/ build-x86_64 (pull_request) Successful in 16m50s
/ deploy-x86_64 (pull_request) Successful in 30s

This commit is contained in:
Antoine Martin 2024-09-05 15:48:26 -04:00
parent 3d36cc8a34
commit 84431a4c46
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -363,7 +363,7 @@ build() {
npm run build
msg "Cleaning dev dependencies for ringrtc"
npm ci --ignore-scripts --omit=dev
npm prune --omit=dev
)
# module on npm intentionally unbuildable: https://github.com/signalapp/libsignal/issues/464#issuecomment-1160665052
@ -382,7 +382,7 @@ build() {
npm run tsc
msg "Cleaning dev dependencies for libsignal"
npm ci --ignore-scripts --omit=dev
npm prune --omit=dev
)
(
@ -408,17 +408,7 @@ build() {
npm run build:dev
# purge non-production deps
npm ci --ignore-scripts --omit=dev
# XXX: the previous step undoes the patches. and removes the patch applier.
# please force me to just implement packaging without dev modules in tasje. -lnl
for x in patches/*.patch; do
# some of these patches are made for devDependencies
if [ -d "$(grep -Eo 'node_modules/(@[a-z\d_-]+/)?[a-z\d_-]+/' "$x" | head -n1)" ]; then
msg "$x"
patch -Np1 -i ./"$x"
fi
done
npm prune --omit=dev
# use our libsignal
rm -rf node_modules/@signalapp/libsignal-client/