Use git commit in your Typescript app

How to use the git commit as your app version in your app.