From 0e664466ed5f4d91bea291a7b64bb916e90ef472 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 17 Jan 2022 04:33:09 +0000 Subject: [PATCH] [TS] Do not rely on a symlink as npm publish ignores it --- genbindings.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2