@@ -5431,6 +5431,7 @@ async function runUpCommand({
54315431 detach,
54325432 cwd : dirname ( project . composeFile ) ,
54335433 env : envOverrides . env ,
5434+ routeStdoutToStderr : json ,
54345435 } ) ;
54355436 if ( upCode !== 0 ) {
54365437 await removeProjectRuntimeStateEntry ( {
@@ -5673,6 +5674,7 @@ async function runDownCommand({
56735674 composeProject : composeProjectName ,
56745675 profiles,
56755676 cwd : dirname ( project . composeFile ) ,
5677+ routeStdoutToStderr : json ,
56765678 } ) ;
56775679
56785680 try {
@@ -5756,6 +5758,7 @@ async function runRestartDownPhase(opts: {
57565758 readonly lifecycleComposeProject : string ;
57575759 readonly profiles : readonly string [ ] ;
57585760 readonly branch : string | null ;
5761+ readonly routeStdoutToStderr ?: boolean ;
57595762 readonly envForCompose : Readonly < Record < string , string > > ;
57605763} ) : Promise < number > {
57615764 const downBefore = await runLifecycleCommands ( {
@@ -5775,6 +5778,7 @@ async function runRestartDownPhase(opts: {
57755778 composeProject : opts . composeProjectName ,
57765779 profiles : opts . profiles ,
57775780 cwd : dirname ( opts . project . composeFile ) ,
5781+ routeStdoutToStderr : opts . routeStdoutToStderr === true ,
57785782 } ) ;
57795783 try {
57805784 await stopLifecycleProcesses ( {
@@ -5821,6 +5825,7 @@ async function runRestartUpPhase(opts: {
58215825 readonly branch : string | null ;
58225826 readonly envName ?: string | null ;
58235827 readonly detach ?: boolean ;
5828+ readonly routeStdoutToStderr ?: boolean ;
58245829} ) : Promise < number > {
58255830 await maybeSyncOauthAliasesInCompose ( { project : opts . project } ) ;
58265831
@@ -5906,6 +5911,7 @@ async function runRestartUpPhase(opts: {
59065911 detach : opts . detach === true ,
59075912 cwd : dirname ( opts . project . composeFile ) ,
59085913 env : envOverrides . env ,
5914+ routeStdoutToStderr : opts . routeStdoutToStderr === true ,
59095915 } ) ;
59105916 if ( upCode !== 0 ) {
59115917 await removeProjectRuntimeStateEntry ( {
@@ -6043,6 +6049,7 @@ async function runRestartCommand({
60436049 profiles,
60446050 branch,
60456051 envForCompose : lifecycleEnv ,
6052+ routeStdoutToStderr : json ,
60466053 } ) ;
60476054 if ( downCode !== 0 ) {
60486055 if ( json ) {
@@ -6074,6 +6081,7 @@ async function runRestartCommand({
60746081 envName : effectiveEnvName ,
60756082 // `--json` implies detach so the command terminates with a result.
60766083 detach : json ,
6084+ routeStdoutToStderr : json ,
60776085 } ) ;
60786086
60796087 if ( ! json ) {
0 commit comments