This is a useful article on building an NPM Module using typescript.
I am using the technique here to move lie.js to typescript.
The documentation is now a little old. Have a look at github.com/chriseyre2000/lie.js for a more recent version.
Also note that I have CircleCI setup to publish to NPM upon receipt of a tag.
This is how to push tags to github:
git tag -a v1.1.4 -m "my version 1.1.4" git push origin --tags