]> git.bitcoin.ninja Git - ldk-java/commitdiff
[TS] Do not rely on a symlink as npm publish ignores it
authorMatt Corallo <git@bluematt.me>
Mon, 17 Jan 2022 04:33:09 +0000 (04:33 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 17 Jan 2022 04:39:00 +0000 (04:39 +0000)
genbindings.sh

index 3c669556f4b46185e570c789aae26be55075476e..128a3afbe481147d0a5df19b4a0df7ed164f7446 100755 (executable)
@@ -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