[TS] Change paths to liblightningjs.wasm to be in ts/
[ldk-java] / genbindings.sh
index 25c8ffbe91c0b4774a4fb4051158ce33e703ecaa..5576b8dba3f17c93d7bf958aa02417de3dcbd60e 100755 (executable)
@@ -223,13 +223,12 @@ else
                        tsc
                else
                        tsc --types node --typeRoots .
-                       cd ..
                        if [ -x "$(which node)" ]; then
                                NODE_V="$(node --version)"
                                if [ "${NODE_V:1:2}" -gt 14 ]; then
                                        rm -f liblightningjs.wasm
-                                       ln -s $WASM_FILE liblightningjs.wasm
-                                       node ts/test/node.mjs
+                                       ln -s "$(pwd)"/../$WASM_FILE liblightningjs.wasm
+                                       node test/node.mjs
                                fi
                        fi
                fi