From a649bfb5937b360e605e8782fa36643462b635fb Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 23 Mar 2020 08:51:04 -0400 Subject: [PATCH] Only publish the dist/ folder. --- build.sh | 5 +++++ package.json | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index c8d5a53..e251b72 100755 --- 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 diff --git a/package.json b/package.json index 5ca9093..e5b6d18 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { "name": "ustaxlib", - "version": "1.0.1", + "version": "1.0.2", "description": "A library for modeling individual US tax returns.", "repository": "https://github.com/rsesek/ustaxlib", "scripts": { + "prepare": "./build.sh", "dev": "jest --watch", "test": "jest", "check": "tsc --noEmit", - "debug": "node --inspect-brk --stack-trace-limit=1000 node_modules/.bin/jest --coverage=false", - "prepare": "./build.sh" + "debug": "node --inspect-brk --stack-trace-limit=1000 node_modules/.bin/jest --coverage=false" }, "author": "Robert Sesek", "license": "GPL-3.0-only", -- 2.43.5