npm installnpm run buildto build the script into./dist/cli.jsnode dist/cli.jsto run the script (ex:node /dist/cli.js "YOUR COMMIT MESSAGE")
- uninstall global version $
npm uninstall -g git-emoji-commit - create new package $
npm packto create tarbal. - check contents of new package $
tar -tf git-emoji-commit-0.5.0.tgz - install local copy of package $
npm install -g ~/wip/git-emoji-commit/git-emoji-commit-0.5.0.tgz(check path and name of tarbal) - test $
git-emoji-commit
Or a one liner might look like:
npm uninstall -g git-emoji-commit && npm pack && tar -tf "$(npm pack | tail -n 1)" && npm install -g ~/wip/git-emoji-commit/"$(npm pack | tail -n 1)"
Unintall local package npm uninstall -g git-emoji-commit again and reinstall global version npm install -g git-emoji-commit to get the latest version from NPM.