diff --git a/src/utils.js b/src/utils.js index bb485097c..93b760568 100644 --- a/src/utils.js +++ b/src/utils.js @@ -578,12 +578,13 @@ export const formatCode = (code, errorLines) => { /** * Pipe subprocess output to stdio - * @param {import('execa').ExecaChildProcess} subprocess - * @param {string} prefix + * + * @param {import('execa').ExecaChildProcess} subprocess + * @param {string} prefix * @param {boolean} [noPrefix] */ -export function pipeOutput(subprocess, prefix, noPrefix) { +export function pipeOutput (subprocess, prefix, noPrefix) { prefix = noPrefix ? '' : kleur.gray(prefix + ': ') subprocess.stdout?.on('data', (data) => process.stdout.write(`${prefix}${data}`)) subprocess.stderr?.on('data', (data) => process.stderr.write(`${prefix}${data}`)) -} \ No newline at end of file +}