add npm hook to package.json