Skip to content

Commit 43e6194

Browse files
committed
fix: dont show run script banners in silent
1 parent 694dba9 commit 43e6194

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/utils/display.js

+7
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,13 @@ class Display {
276276
return
277277
}
278278

279+
// HACK: if it looks like the banner and we are silent do not print it.
280+
// There's no other way to do this right now :(
281+
// eslint-disable-next-line max-len
282+
if (this.#silent && args.length === 1 && args[0].startsWith('\n> ') && args[0].endsWith('\n')) {
283+
return
284+
}
285+
279286
this.#writeOutput(level, meta, ...args)
280287
})
281288

0 commit comments

Comments
 (0)