@pnpm/lifecycle
Advanced tools
Comparing version 9.1.3 to 9.2.0
# @pnpm/lifecycle | ||
## 9.2.0 | ||
### Minor Changes | ||
- 76aaead32: Added an option for silent execution: opts.silent. | ||
## 9.1.3 | ||
@@ -4,0 +10,0 @@ |
@@ -10,5 +10,6 @@ import { DependencyManifest, ProjectManifest } from '@pnpm/types'; | ||
rootModulesDir: string; | ||
silent?: boolean; | ||
stdio?: string; | ||
unsafePerm: boolean; | ||
}; | ||
export default function runLifecycleHook(stage: string, manifest: ProjectManifest | DependencyManifest, opts: RunLifecycleHookOptions): Promise<any>; | ||
export default function runLifecycleHook(stage: string, manifest: ProjectManifest | DependencyManifest, opts: RunLifecycleHookOptions): Promise<void>; |
@@ -30,3 +30,5 @@ "use strict"; | ||
} | ||
return lifecycle(m, stage, opts.pkgRoot, { | ||
const logLevel = (opts.stdio !== 'inherit' || opts.silent) | ||
? 'silent' : undefined; | ||
await lifecycle(m, stage, opts.pkgRoot, { | ||
config: opts.rawConfig, | ||
@@ -39,3 +41,3 @@ dir: opts.rootModulesDir, | ||
info: noop, | ||
level: opts.stdio === 'inherit' ? undefined : 'silent', | ||
level: logLevel, | ||
pause: noop, | ||
@@ -42,0 +44,0 @@ resume: noop, |
{ | ||
"name": "@pnpm/lifecycle", | ||
"version": "9.1.3", | ||
"version": "9.2.0", | ||
"description": "Package lifecycle hook runner", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13397
202