- if [ "$4" = "true" ]; then
- tsc
- else
- tsc --types node --typeRoots .
- 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
+ tsc --types node --typeRoots .
+ cp ../$WASM_FILE liblightningjs.wasm
+ cp ../README.md README.md
+ echo Ready to publish!
+ if [ -x "$(which node)" ]; then
+ NODE_V="$(node --version)"
+ if [ "${NODE_V:1:2}" -gt 14 ]; then
+ node test/node.mjs