Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
prepublish is never triggered when using git urls #3423
I've got the problem, that I'm using the prepublish hook for compiling some modules with browserify. Unfortunately this hook is triggered when I'm releasing the module to npmjs.org, but it won't be triggered if someone puts the git url in package.json.
The documentation of npm stats that using the install hook (which works for my purpose) is an antipattern.
I recommend a new hook which serves this purpose, removing the antipattern from documentation or let prepublish be triggered on github urls on install too.