From 3b49f466c91e07f08f779a2eed93ea1b9b669066 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 25 Jul 2022 02:47:35 -0400 Subject: [PATCH] *Add build step to build all native modules then copy the library to its build/Release folder *Ensure we don't load a loady instance as a sub-module --- prebuild.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/prebuild.sh b/prebuild.sh index 20d606d..668926a 100644 --- a/prebuild.sh +++ b/prebuild.sh @@ -10,3 +10,12 @@ rimraf node_modules/@tendermint/belt/node_modules/@tendermint/types rimraf node_modules/@pokt-network/pocket-js/dist/web.js rimraf node_modules/@pokt-network/amino-js/dist/web* rimraf node_modules/supports-color +rimraf node_modules/*/node_modules/loady + +for pkg in bcrypto udx-native secp256k1 bigint-buffer bufferutil sodium-native bdb goosig mrmr utf-8-validate; do + ( + cd "node_modules/${pkg}" || return + prebuildify -t "$(node -v)" + cp "build/Release/obj.target/"*.node "build/Release/" + ) +done