()
| 2 | * Checks if the current process is running in an npm lifecycle hook, excluding custom npm scripts. |
| 3 | */ |
| 4 | export function isInNpmLifecycleHook(): boolean { |
| 5 | return process.env.npm_lifecycle_event !== undefined && process.env.npm_command !== 'run-script' |
| 6 | } |
no outgoing calls
no test coverage detected