From: Matt Corallo Date: Mon, 17 Jan 2022 04:33:09 +0000 (+0000) Subject: [TS] Do not rely on a symlink as npm publish ignores it X-Git-Tag: v0.0.105.0~5^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=commitdiff_plain;h=0e664466ed5f4d91bea291a7b64bb916e90ef472 [TS] Do not rely on a symlink as npm publish ignores it --- diff --git a/genbindings.sh b/genbindings.sh index 3c669556..128a3afb 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -223,11 +223,11 @@ else tsc else tsc --types node --typeRoots . + cp ../$WASM_FILE liblightningjs.wasm + echo Ready to publish! if [ -x "$(which node)" ]; then NODE_V="$(node --version)" if [ "${NODE_V:1:2}" -gt 14 ]; then - rm -f liblightningjs.wasm - ln -s "$(pwd)"/../$WASM_FILE liblightningjs.wasm node test/node.mjs fi fi