I've used `precommit-hook` npm module and it changed my package.json. but there was no newline at the end of the file.