diff --git a/packages/cli/src/utils/dlx/spawn.mts b/packages/cli/src/utils/dlx/spawn.mts index 47850392c..7e2ddb155 100644 --- a/packages/cli/src/utils/dlx/spawn.mts +++ b/packages/cli/src/utils/dlx/spawn.mts @@ -144,7 +144,9 @@ export async function spawnCoanaDlx( data: typeof spawnResult.stdout === 'string' ? spawnResult.stdout - : spawnResult.stdout.toString(), + : spawnResult.stdout + ? spawnResult.stdout.toString() + : '', } } @@ -175,7 +177,9 @@ export async function spawnCoanaDlx( data: typeof output.stdout === 'string' ? output.stdout - : output.stdout.toString(), + : output.stdout + ? output.stdout.toString() + : '', } } catch (e) { const stderr = (e as any)?.stderr