chore: add package.json for npm publication
feature: add git pre-commit hook