Skip to content

Commit a43242f

Browse files
committed
respect the --silence flag
1 parent 54ae20b commit a43242f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/utils/dlx.mts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ export async function spawnCoanaDlx(
278278
)
279279
const output = await result.spawnPromise
280280
// Print output when running in e2e-tests workflow for debugging.
281-
if (CI && VITEST) {
281+
// Respect the silent option from the caller.
282+
if (CI && VITEST && !dlxOptions.silent) {
282283
if (output.stdout) {
283284
console.log(output.stdout)
284285
}
@@ -291,7 +292,8 @@ export async function spawnCoanaDlx(
291292
const stdout = (e as any)?.stdout
292293
const stderr = (e as any)?.stderr
293294
// Print output when running in e2e-tests workflow for debugging.
294-
if (CI && VITEST) {
295+
// Respect the silent option from the caller.
296+
if (CI && VITEST && !dlxOptions.silent) {
295297
if (stdout) {
296298
console.log(stdout)
297299
}

0 commit comments

Comments
 (0)