prune rather than reinstall
This commit is contained in:
parent
3d36cc8a34
commit
84431a4c46
1 changed files with 3 additions and 13 deletions
|
@ -363,7 +363,7 @@ build() {
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
msg "Cleaning dev dependencies for ringrtc"
|
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
|
# module on npm intentionally unbuildable: https://github.com/signalapp/libsignal/issues/464#issuecomment-1160665052
|
||||||
|
@ -382,7 +382,7 @@ build() {
|
||||||
npm run tsc
|
npm run tsc
|
||||||
|
|
||||||
msg "Cleaning dev dependencies for libsignal"
|
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
|
npm run build:dev
|
||||||
|
|
||||||
# purge non-production deps
|
# purge non-production deps
|
||||||
npm ci --ignore-scripts --omit=dev
|
npm prune --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
|
|
||||||
|
|
||||||
# use our libsignal
|
# use our libsignal
|
||||||
rm -rf node_modules/@signalapp/libsignal-client/
|
rm -rf node_modules/@signalapp/libsignal-client/
|
||||||
|
|
Loading…
Reference in a new issue