In NPM3, if a package (re)installed a local dependency (e.g. npm i file:../some-dep
), and that dependency package had a prepublish
script, then it would be automatically run. This was rather useful in the instance you were developing a small tree of modules requiring transpilation, as I am; simply re-installing the local dependency in its parent executed the transcompilation (and updated the compiled code) without any additional steps.
Apparently with NPM 5 (and presumably NPM 4), this behaviour has been silently dropped; nothing in the release notes AFAICT.
I am well-aware that publish
was split into prepublish
and prepare
, however none of them do anything in the above context.
Has this behaviour really been unceremoniously dropped? Is it a bug? Feature-removal?