Skip to content

Commit

Permalink
fix: npx stdin command's child process stderr logging
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Nov 20, 2023
1 parent 53e4d2d commit 296002e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stdin/npx.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ module.exports = class extends StdinCommand {
if (!input[0]) return this.client.log.warn('Usage: npx <command> [args]');
const child = spawn('npx', input, { shell: true });
for await (const data of child.stdout) this.client.log.info('npx:', data.toString());
for await (const data of child.stderr) this.client.warn.info('npx:', data.toString());
for await (const data of child.stderr) this.client.log.warn('npx:', data.toString());
}
};
};

0 comments on commit 296002e

Please sign in to comment.