[TS] Auto-update version in package.json in genbindings.sh
[ldk-java] / genbindings.sh
index a78e57ed4a2ab79e05b486c7debbbf17610074e3..4102884dc92350ac4cb91565abfefa8d87979b2e 100755 (executable)
@@ -189,6 +189,7 @@ else
                ./genbindings.py "./lightning.h" ts ts ts $DEBUG_ARG typescript browser
        fi
        rm -f ts/bindings.c
+       sed -i 's/^  "version": .*/  "version": "'${LDK_GARBAGECOLLECTED_GIT_OVERRIDE:1:100}'",/g' ts/package.json
        if [ "$3" = "true" ]; then
                echo "#define LDK_DEBUG_BUILD" > ts/bindings.c
        elif [ "$3" = "leaks" ]; then