# "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
--- /dev/null
+# Developer Workflows
+
+## Publishing Releases
+
+Only the dist/ directory, containing the compiled TypeScript files are put into the NPM package. The
+`build.sh` script copies non-`tsc`-processed files, and does some processing of the `package.json`.
+To publish a new release, just run:
+
+ npm run npm-publish
"description": "A library for modeling individual US tax returns.",
"repository": "https://github.com/rsesek/ustaxlib",
"scripts": {
- "prepare": "./build.sh",
+ "npm-publish": "./build.sh && npm publish dist",
"dev": "jest --watch",
"test": "jest",
- "check": "tsc --noEmit",
"debug": "node --inspect-brk --stack-trace-limit=1000 node_modules/.bin/jest --coverage=false"
},
"author": "Robert Sesek",