Skip to content

Commit 2d12182

Browse files
author
John Doe
committed
refactor: fix logger spacing
1 parent 4dcbedb commit 2d12182

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/utils/src/lib/logger.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,11 +548,12 @@ export function formatCommand(
548548
const cwdPrefix = cwd ? `${ansis.blue(cwd)} ` : '';
549549
const envString =
550550
options?.env && Object.keys(options.env).length > 0
551-
? Object.entries(options.env)
552-
.map(([key, value]) => {
551+
? [
552+
...Object.entries(options.env).map(([key, value]) => {
553553
return ansis.gray(`${key}=${value}`);
554-
})
555-
.join(' ')
554+
}),
555+
' ',
556+
].join(' ')
556557
: '';
557558
const statusColor =
558559
status === 'pending'

0 commit comments

Comments
 (0)