diff --git a/pnpm11/cli/default-reporter/src/reporterForClient/reportLifecycleScripts.ts b/pnpm11/cli/default-reporter/src/reporterForClient/reportLifecycleScripts.ts index 3e62630e0f..336ef73c8b 100644 --- a/pnpm11/cli/default-reporter/src/reporterForClient/reportLifecycleScripts.ts +++ b/pnpm11/cli/default-reporter/src/reporterForClient/reportLifecycleScripts.ts @@ -277,6 +277,9 @@ function formatLine (maxWidth: number, logObj: LifecycleLog): string { function cutLine (line: string | undefined, maxLength: number): string { if (!line) return '' + // Streamed lifecycle output is printed in full (maxLength is Infinity). + // cli-truncate rejects a non-finite width, so skip truncation in that case. + if (!Number.isFinite(maxLength)) return line return cliTruncate(line, maxLength) }