Upgrade to Node v16 for Github workflows.
[ustaxlib.git] / build.sh
index c8d5a5359b71467897993503671b825f386b4de0..96d024d86bf4eaabfeb5f8b5e07798e0b2bd893a 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -12,11 +12,17 @@ set -ex
 rm -rf $OUTDIR
 
 # Compile.
-tsc
+npx tsc --version
+npx tsc
 
 # Drop tests from the compiled output.
 find $OUTDIR -type f -name '*.test.*' -exec rm {} +
 
+cp -r examples $OUTDIR
+cp README.md $OUTDIR
+cp LICENSE.txt $OUTDIR
+
 # "Preprocess" the dist package.json.
 cp ./package.json $OUTDIR
-sed -i '' -e s@\"dist/@\"@ $OUTDIR/package.json
+sed -i.bak -e s@\"dist/@\"@ $OUTDIR/package.json
+rm $OUTDIR/package.json.bak