iarna

iarna/in-publish

Detect if we were run as a result of `npm publish`.

JavaScript
127
17
ISC License

This is a simple npm utility for detecting if a script is being run during an `npm publish` or `npm pack` command, versus during `npm install`. It's designed for Node.js developers who need to control when certain `prepublish` lifecycle scripts execute, particularly to avoid running publish-specific tasks during development installations.

Total donated
Undistributed
Share with your subscribers: