Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Oct 5, 2023
1 parent c20b25c commit 9a17403
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`))
}
}

0 comments on commit 9a17403

Please sign in to comment.