+
+if [ -x "$(which tsc)" ]; then
+ cd ts
+rm -r structs # TODO: Make the human-types compile
+ if [ "$5" = "false" ]; then
+ tsc
+ else
+ tsc --types node --typeRoots .
+ cd ..
+ if [ -x "$(which node)" ]; then
+ NODE_V="$(node --version)"
+ if [ "${NODE_V:1:2}" -gt 14 ]; then
+ node ts/test/
+ fi
+ fi
+ fi
+fi