Only publish the dist/ folder.
[ustaxlib.git] / build.sh
index c8d5a5359b71467897993503671b825f386b4de0..e251b728483b34b6c319149378ebc91ee9240a40 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -17,6 +17,11 @@ 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 '' -e 's@"prepare": ".*",@@' $OUTDIR/package.json