MCPcopy
hub / github.com/prisma/prisma / isInNpmLifecycleHook

Function isInNpmLifecycleHook

packages/internals/src/utils/isInNpmLifecycleHook.ts:4–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

handleNpsSurveyImplFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected